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 @@ -694,8 +694,12 @@ Metadata can also be accessed in a Listener, from the Event object.
694
694
Using transition blockers you can
695
695
return a user-friendly error message when you stop a transition from happening. In the example we
696
696
get this message from the :class: `Symfony\\ Component\\ Workflow\\ Event\\ Event `'s metadata, giving
697
- you an easy place to manage the text. This is a contrived example; in production code you may
698
- prefer to use the :doc: `Translation </components/translation >` component to manage messages::
697
+ you an easy place to manage the text.
698
+
699
+ .. tip ::
700
+
701
+ This is a simple example; in production you may prefer to use the :doc: `Translation </components/translation >`
702
+ component to manage messages in one place::
699
703
700
704
namespace App\Listener\Workflow\Task;
701
705
You can’t perform that action at this time.
0 commit comments