public function Workflow::getStates in State Machine 8
Gets the workflow states.
Return value
\Drupal\state_machine\Plugin\Workflow\WorkflowState[] The states, keyed by state ID.
Overrides WorkflowInterface::getStates
File
- src/
Plugin/ Workflow/ Workflow.php, line 104  
Class
- Workflow
 - Defines the class for workflows.
 
Namespace
Drupal\state_machine\Plugin\WorkflowCode
public function getStates() {
  return $this->states;
}