You are here

public function WorkflowInterface::getStates in Workflow 7.2

Gets all states for a given workflow.

Parameters

mixed $all: Indicates to which states to return.

  • TRUE = all, including Creation and Inactive;
  • FALSE = only Active states, not Creation;
  • 'CREATION' = only Active states, including Creation.

Return value

WorkflowState[] An array of WorkflowState objects.

1 method overrides WorkflowInterface::getStates()
Workflow::getStates in includes/Entity/Workflow.php
Gets all states for a given workflow.

File

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

Class

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

Code

public function getStates($all = FALSE, $reset = FALSE);