File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -505,31 +505,6 @@ transition was blocked::
505
505
}
506
506
}
507
507
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
-
533
508
Don't need a human-readable message? You can still use::
534
509
535
510
$event->setBlocked('true');
You can’t perform that action at this time.
0 commit comments