You are here

public function WorkflowTypeInterface::getTransitionFromStateToState in Drupal 8

Same name and namespace in other branches
  1. 9 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);