You are here

public function WorkflowTypeInterface::getTransitions in Drupal 8

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

Class

WorkflowTypeInterface
An interface for Workflow type plugins.

Namespace

Drupal\workflows

Code

public function getTransitions(array $transition_ids = NULL);