You are here

public function WorkflowInterface::getState in State Machine 8

Gets a workflow state with the given ID.

Parameters

string $id: The state ID.

Return value

\Drupal\state_machine\Plugin\Workflow\WorkflowState|null The requested state, or NULL if not found.

1 method overrides WorkflowInterface::getState()
Workflow::getState in src/Plugin/Workflow/Workflow.php
Gets a workflow state with the given ID.

File

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

Class

WorkflowInterface
Defines the interface for workflows.

Namespace

Drupal\state_machine\Plugin\Workflow

Code

public function getState($id);