Skip to content

Commit 643cc25

Browse files
committed
Minor tweaks
1 parent 06adff6 commit 643cc25

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

workflow/usage.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)