Skip to content

Commit 8b3c755

Browse files
committed
Documented the getWorkflowName() method
1 parent 2b1dbee commit 8b3c755

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

workflow/usage.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ This means that each event has access to the following information:
237237
:method:`Symfony\\Component\\Workflow\\Event\\Event::getTransition`
238238
Returns the :class:`Symfony\\Component\\Workflow\\Transition` that dispatches the event.
239239

240+
:method:`Symfony\\Component\\Workflow\\Event\\Event::getWorkflowName`
241+
Returns a string with the name of the workflow that triggered the event.
242+
243+
.. versionadded:: 3.3
244+
The ``getWorkflowName()`` method was introduced in Symfony 3.3.
245+
240246
For Guard Events, there is an extended class :class:`Symfony\\Component\\Workflow\\Event\\GuardEvent`.
241247
This class has two more methods:
242248

0 commit comments

Comments
 (0)