Skip to content

Commit f673d4d

Browse files
committed
[#11375] Removed the workflow_transition_blockers from 4.2 docs
1 parent 2956eda commit f673d4d

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

workflow/usage.rst

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -505,31 +505,6 @@ transition was blocked::
505505
}
506506
}
507507

508-
You can access the message from a Twig template as follows:
509-
510-
.. code-block:: html+twig
511-
512-
<h2>Publication was blocked because:</h2>
513-
<ul>
514-
{% for transition in workflow_all_transitions(article) %}
515-
{% if not workflow_can(article, transition.name) %}
516-
<li>
517-
<strong>{{ transition.name }}</strong>:
518-
<ul>
519-
{% for blocker in workflow_transition_blockers(article, transition.name) %}
520-
<li>
521-
{{ blocker.message }}
522-
{% if blocker.parameters.expression is defined %}
523-
<code>{{ blocker.parameters.expression }}</code>
524-
{% endif %}
525-
</li>
526-
{% endfor %}
527-
</ul>
528-
</li>
529-
{% endif %}
530-
{% endfor %}
531-
</ul>
532-
533508
Don't need a human-readable message? You can still use::
534509

535510
$event->setBlocked('true');

0 commit comments

Comments
 (0)