File tree 1 file changed +0
-25
lines changed
Filter options
1 file changed +0
-25
lines changed
Original file line number Diff line number Diff line change @@ -588,31 +588,6 @@ transition was blocked::
588
588
}
589
589
}
590
590
591
- You can access the message from a Twig template as follows:
592
-
593
- .. code-block :: html+twig
594
-
595
- <h2>Publication was blocked because:</h2>
596
- <ul>
597
- {% for transition in workflow_all_transitions(article) %}
598
- {% if not workflow_can(article, transition.name) %}
599
- <li>
600
- <strong>{{ transition.name }}</strong>:
601
- <ul>
602
- {% for blocker in workflow_transition_blockers(article, transition.name) %}
603
- <li>
604
- {{ blocker.message }}
605
- {% if blocker.parameters.expression is defined %}
606
- <code>{{ blocker.parameters.expression }}</code>
607
- {% endif %}
608
- </li>
609
- {% endfor %}
610
- </ul>
611
- </li>
612
- {% endif %}
613
- {% endfor %}
614
- </ul>
615
-
616
591
Don't need a human-readable message? You can still use::
617
592
618
593
$event->setBlocked('true');
You can’t perform that action at this time.
0 commit comments