You are here

public function WorkflowInterface::getTransitions in Workflow 8

Loads all allowed ConfigTransitions for this workflow.

Parameters

array|null $ids: Array of Transitions IDs. If NULL, show all transitions.

array $conditions: $conditions['from_sid'] : if provided, a 'from' State ID. $conditions['to_sid'] : if provided, a 'to' state ID.

Return value

\Drupal\workflow\Entity\WorkflowConfigTransition[]

1 method overrides WorkflowInterface::getTransitions()
Workflow::getTransitions in src/Entity/Workflow.php
Loads all allowed ConfigTransitions for this workflow.

File

src/Entity/WorkflowInterface.php, line 157

Class

WorkflowInterface
Defines a common interface for Workflow*Transition* objects.

Namespace

Drupal\workflow\Entity

Code

public function getTransitions(array $ids = NULL, array $conditions = []);