Skip to content

Commit 1601f09

Browse files
authored
Add getEnabledTransition() method
1 parent d721eb7 commit 1601f09

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

workflow.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,15 @@ machine type, use ``camelCased workflow name + StateMachine``::
310310
}
311311
}
312312

313+
To get all enabled transitions of a Workflow, you can use
314+
:method:`Symfony\\Component\\Workflow\\WorkflowInterface::getEnabledTransitions`
315+
method.
316+
317+
.. versionadded:: 7.1
318+
319+
The :method:`Symfony\\Component\\Workflow\\WorkflowInterface::getEnabledTransitions` method
320+
was introduced in Symfony 7.1.
321+
313322
Workflows can also be injected thanks to their name and the
314323
:class:`Symfony\\Component\\DependencyInjection\\Attribute\\Target`
315324
attribute::

0 commit comments

Comments
 (0)