function WorkflowTypeInterface::getTransitions

Same name in other branches
  1. 8.9.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getTransitions()
  2. 10 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getTransitions()
  3. 11.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getTransitions()

Gets transition objects for the provided transition IDs.

Parameters

string[] $transition_ids: A list of transition IDs to get. If NULL then all transitions will be returned.

Return value

\Drupal\workflows\TransitionInterface[] An array of transition objects.

Throws

\InvalidArgumentException Thrown if $transition_ids contains a transition ID that does not exist.

1 method overrides WorkflowTypeInterface::getTransitions()
WorkflowTypeBase::getTransitions in core/modules/workflows/src/Plugin/WorkflowTypeBase.php
Gets transition objects for the provided transition IDs.

File

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

Class

WorkflowTypeInterface
An interface for Workflow type plugins.

Namespace

Drupal\workflows

Code

public function getTransitions(array $transition_ids = NULL);

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