Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b3c755

Browse filesBrowse files
committed
Documented the getWorkflowName() method
1 parent 2b1dbee commit 8b3c755
Copy full SHA for 8b3c755

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎workflow/usage.rst

Copy file name to clipboardExpand all lines: workflow/usage.rst
+6Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.