public function WorkflowTypeInterface::setTransitionFromStates in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::setTransitionFromStates()
- 10 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::setTransitionFromStates()
Sets a transition's from states.
Parameters
string $transition_id: The transition ID.
array $from_state_ids: The state IDs to transition from.
Return value
$this
Throws
\InvalidArgumentException Thrown if the transition does not exist or the states do not exist.
1 method overrides WorkflowTypeInterface::setTransitionFromStates()
- WorkflowTypeBase::setTransitionFromStates in core/
modules/ workflows/ src/ Plugin/ WorkflowTypeBase.php - Sets a transition's from states.
File
- core/
modules/ workflows/ src/ WorkflowTypeInterface.php, line 337
Class
- WorkflowTypeInterface
- An interface for Workflow type plugins.
Namespace
Drupal\workflowsCode
public function setTransitionFromStates($transition_id, array $from_state_ids);