You are here

public function WorkflowInterface::getAllowedTransitions in State Machine 8

Gets the allowed workflow transitions for the given state ID.

Parameters

string $state_id: The state ID.

\Drupal\Core\Entity\EntityInterface $entity: The parent entity.

Return value

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

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

File

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

Class

WorkflowInterface
Defines the interface for workflows.

Namespace

Drupal\state_machine\Plugin\Workflow

Code

public function getAllowedTransitions($state_id, EntityInterface $entity);