You are here

public function WorkflowInterface::getStates in Workflow 8

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.

bool $reset:

Return value

\Drupal\workflow\Entity\WorkflowState[] An array of WorkflowState objects.

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

File

src/Entity/WorkflowInterface.php, line 115

Class

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

Namespace

Drupal\workflow\Entity

Code

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