From e94de7a5672dc87baa021cacdd3d05abb6d5e5b5 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 12 Mar 2024 10:04:12 +0100 Subject: [PATCH] [Workflow] Attach workflow configuration to tags --- service_container/tags.rst | 2 ++ workflow.rst | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/service_container/tags.rst b/service_container/tags.rst index ca36bde74e1..1900ce28fb2 100644 --- a/service_container/tags.rst +++ b/service_container/tags.rst @@ -458,6 +458,8 @@ or from your kernel:: :ref:`components documentation ` for more information. +.. _tags_additional-attributes: + Adding Additional Attributes on Tags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/workflow.rst b/workflow.rst index 7e45c7693c1..4e85c10087d 100644 --- a/workflow.rst +++ b/workflow.rst @@ -366,6 +366,17 @@ name. * ``workflow.workflow``: all workflows; * ``workflow.state_machine``: all state machines. + Note that workflow metadata are attached to tags under the + ``metatdata`` key, giving you more context and information about the workflow + at disposal. You can learn more about + :ref:`tag attributes ` and + :ref:`storing workflow metadata ` + in their dedicated sections. + + .. versionadded:: 7.1 + + The attached configuration to the tag was introduced in Symfony 7.1. + .. tip:: You can find the list of available workflow services with the @@ -1032,6 +1043,8 @@ The following example shows these functions in action: {{ blocker.message }} {% endfor %} +.. _workflow_storing-metadata: + Storing Metadata ----------------