function WorkflowTypeInterface::getTransitionFromStateToState

Same name in other branches
  1. 8.9.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getTransitionFromStateToState()
  2. 10 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getTransitionFromStateToState()
  3. 11.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\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
Gets a transition from state to state.

File

core/modules/workflows/src/WorkflowTypeInterface.php, line 279

Class

WorkflowTypeInterface
An interface for Workflow type plugins.

Namespace

Drupal\workflows

Code

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.