You are here

public function WorkflowInterface::getTransitions in Workflow 7.2

Loads all allowed ConfigTransitions for this workflow.

Parameters

array|bool $tids: Array of Transitions IDs. If FALSE, show all transitions.

array $conditions: $conditions['sid'] : if provided, a 'from' State ID. $conditions['target_sid'] : if provided, a 'to' state ID. $conditions['roles'] : if provided, an array of roles, or 'ALL'.

bool $reset: Indicator to reset the cache.

Return value

\Drupal\workflow\Entity\WorkflowConfigTransition[]

1 method overrides WorkflowInterface::getTransitions()
Workflow::getTransitions in includes/Entity/Workflow.php
@inheritdoc

File

includes/Entity/WorkflowInterface.php, line 168
Contains Drupal\workflow\Entity\WorkflowInterface.

Class

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

Code

public function getTransitions($tids = FALSE, array $conditions = array(), $reset = FALSE);