8000 Reword · symfony/symfony-docs@e9c6102 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e9c6102

Browse files
committed
Reword
1 parent b1487e3 commit e9c6102

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

workflow.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ of domain logic in your templates:
663663

664664
``workflow_has_marked_place()``
665665
Returns ``true`` if the marking of the given object has the given state.
666-
666+
667667
``workflow_transition_blockers()``
668668
Returns :class:`Symfony\\Component\\Workflow\\TransitionBlockerList` for the given transition.
669669

@@ -698,7 +698,7 @@ The following example shows these functions in action:
698698
{% if 'reviewed' in workflow_marked_places(post) %}
699699
<span class="label">Reviewed</span>
700700
{% endif %}
701-
701+
702702
{# Loop through the transition blockers #}
703703
{% for blocker in workflow_transition_blockers(post, 'publish') %}
704704
<span class="error">{{ blocker.message }}</span>
@@ -858,13 +858,13 @@ Then you can access this metadata in your controller as follows::
858858

859859
There is a ``getMetadata()`` method that works with all kinds of metadata::
860860

861-
// pass a string (the key of workflow metadata) to getMetadata() to get "workflow metadata" by key
861+
// get "workflow metadata" passing the metadata key as argument
862862
$title = $workflow->getMetadataStore()->getMetadata('title');
863863

864-
// pass two arguments: a string (the key of place metadata) and a string (the place name) to getMetadata() to get "place metadata" by key
864+
// get "place metadata" passing the metadata key as the first argument and the place name as the second argument
865865
$maxNumOfWords = $workflow->getMetadataStore()->getMetadata('max_num_of_words', 'draft');
866866

867-
// pass two arguments: a string (the key of transition metadata) and a Transition object to getMetadata() to get "transition metadata" by key
867+
// get "transition metadata" passing the metadata key as the first argument and a Transition object as the second argument
868868
$priority = $workflow->getMetadataStore()->getMetadata('priority', $aTransition);
869869

870870
In a :ref:`flash message <flash-messages>` in your controller::

0 commit comments

Comments
 (0)
0