function WorkflowTypeInterface::getTransition
Gets a transition object for the provided transition ID.
Parameters
string $transition_id: A transition ID.
Return value
\Drupal\workflows\TransitionInterface The transition.
Throws
\InvalidArgumentException Thrown if $transition_id does not exist.
1 method overrides WorkflowTypeInterface::getTransition()
- WorkflowTypeBase::getTransition in core/
modules/ workflows/ src/ Plugin/ WorkflowTypeBase.php - Gets a transition object for the provided transition ID.
File
-
core/
modules/ workflows/ src/ WorkflowTypeInterface.php, line 219
Class
- WorkflowTypeInterface
- An interface for Workflow type plugins.
Namespace
Drupal\workflowsCode
public function getTransition($transition_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.