function WorkflowTypeInterface::getTransition

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getTransition()
  2. 8.9.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getTransition()
  3. 10 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 218

Class

WorkflowTypeInterface
An interface for Workflow type plugins.

Namespace

Drupal\workflows

Code

public function getTransition($transition_id);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.