diff --git a/workflow/usage.rst b/workflow/usage.rst index 7f6ce9d9f36..694db02c60a 100644 --- a/workflow/usage.rst +++ b/workflow/usage.rst @@ -237,6 +237,12 @@ This means that each event has access to the following information: :method:`Symfony\\Component\\Workflow\\Event\\Event::getTransition` Returns the :class:`Symfony\\Component\\Workflow\\Transition` that dispatches the event. +:method:`Symfony\\Component\\Workflow\\Event\\Event::getWorkflowName` + Returns a string with the name of the workflow that triggered the event. + + .. versionadded:: 3.3 + The ``getWorkflowName()`` method was introduced in Symfony 3.3. + For Guard Events, there is an extended class :class:`Symfony\\Component\\Workflow\\Event\\GuardEvent`. This class has two more methods: