File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -610,8 +610,12 @@ Metadata can also be accessed in a Listener, from the Event object.
610
610
Using transition blockers you can
611
611
return a user-friendly error message when you stop a transition from happening. In the example we
612
612
get this message from the :class: `Symfony\\ Component\\ Workflow\\ Event\\ Event `'s metadata, giving
613
- you an easy place to manage the text. This is a contrived example; in production code you may
614
- prefer to use the :doc: `Translation </components/translation >` component to manage messages::
613
+ you an easy place to manage the text.
614
+
615
+ .. tip ::
616
+
617
+ This is a simple example; in production you may prefer to use the :doc: `Translation </components/translation >`
618
+ component to manage messages in one place::
615
619
616
620
namespace App\Listener\Workflow\Task;
617
621
You can’t perform that action at this time.
0 commit comments