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