8000 minor #7822 Documented the getWorkflowName() method (javiereguiluz) · symfony/symfony-docs@782b092 · GitHub
[go: up one dir, main page]

Skip to content

Commit 782b092

Browse files
committed
minor #7822 Documented the getWorkflowName() method (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #7822). Discussion ---------- Documented the getWorkflowName() method This fixes #7691. Commits ------- 8b3c755 Documented the getWorkflowName() method
2 parents 7778823 + 8b3c755 commit 782b092

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)
0