You are here

public function WorkflowInterface::getPossibleTransitions in State Machine 8

Gets the possible workflow transitions for the given state ID.

Note that a possible transition might not be allowed (because of a guard returning false).

Parameters

string $state_id: The state ID.

Return value

\Drupal\state_machine\Plugin\Workflow\WorkflowTransition[] The possible transitions, keyed by transition ID.

1 method overrides WorkflowInterface::getPossibleTransitions()
Workflow::getPossibleTransitions in src/Plugin/Workflow/Workflow.php
Gets the possible workflow transitions for the given state ID.

File

src/Plugin/Workflow/WorkflowInterface.php, line 86

Class

WorkflowInterface
Defines the interface for workflows.

Namespace

Drupal\state_machine\Plugin\Workflow

Code

public function getPossibleTransitions($state_id);