You are here

public function WorkflowState::__toString in State Machine 8

Gets the string representation of the workflow state.

Return value

string The string representation of the workflow state.

File

src/Plugin/Workflow/WorkflowState.php, line 63

Class

WorkflowState
Defines the class for workflow states.

Namespace

Drupal\state_machine\Plugin\Workflow

Code

public function __toString() {
  return $this
    ->getLabel();
}