From 4b1c9cb3424f02ea127227520775e957367b239c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Mordefroy?= <42770997+Mick3DIY@users.noreply.github.com> Date: Tue, 14 Mar 2023 15:05:54 +0100 Subject: [PATCH] [Workflow] Update workflow.rst --- workflow.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workflow.rst b/workflow.rst index 0deb02df50b..98b3162091d 100644 --- a/workflow.rst +++ b/workflow.rst @@ -160,6 +160,10 @@ follows: If you are creating your first workflows, consider using the ``workflow:dump`` command to :doc:`debug the workflow contents `. +.. tip:: + + You can use constants in YAML files and add some in the BlogPost entity for places ``draft`` by ``!php/const App\Entity\BlogPost::STATE_DRAFT`` or for transitions ``to_review`` by ``!php/const App\Entity\BlogPost::TRANSITION_TO_REVIEW``. + The configured property will be used via its implemented getter/setter methods by the marking store:: // src/Entity/BlogPost.php