public function WorkflowTypeInterface::getTransition in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\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);