Skip to content

Commit 5512f3f

Browse files
committed
feature #19243 [Workflow] Add getEnabledTransition() method (ChibyJade, OskarStark)
This PR was merged into the 7.1 branch. Discussion ---------- [Workflow] Add `getEnabledTransition()` method Fix #19234 Commits ------- 0fe3b79 Update workflow.rst 0dc5f71 Apply suggestions from code review 1601f09 Add getEnabledTransition() method
2 parents d721eb7 + 0fe3b79 commit 5512f3f

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 the enabled transition of a Workflow, you can use
314+
:method:`Symfony\\Component\\Workflow\\WorkflowInterface::getEnabledTransition`
315+
method.
316+
317+
.. versionadded:: 7.1
318+
319+
The :method:`Symfony\\Component\\Workflow\\WorkflowInterface::getEnabledTransition`
320+
method 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)