File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -472,13 +472,11 @@ Transition Blockers
472472-------------------
473473
474474.. versionadded :: 4.1
475- Transition Blockers were introduced in Symfony 4.1.
476-
477- Transition Blockers provide a simple way to return a human-readable message for why a transition
478- was blocked. You can access the message from Twig. Here's an example:
479475
476+ Transition Blockers were introduced in Symfony 4.1.
480477
481- .. code-block :: php
478+ Transition Blockers provide a way to return a human-readable message for why a
479+ transition was blocked::
482480
483481 use Symfony\Component\Workflow\Event\GuardEvent;
484482 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
@@ -508,6 +506,8 @@ was blocked. You can access the message from Twig. Here's an example:
508506 }
509507 }
510508
509+ You can access the message from a Twig template as follows:
510+
511511.. code-block :: html+twig
512512
513513 <h2>Publication was blocked because:</h2>
You can’t perform that action at this time.
0 commit comments