public function WorkflowInterface::getState in Workflow 7.2
Gets a state for a given workflow.
Parameters
mixed $key: A state ID or state Name.
Return value
WorkflowState A WorkflowState object.
1 method overrides WorkflowInterface::getState()
- Workflow::getState in includes/
Entity/ Workflow.php - Gets a state for a given workflow.
File
- includes/
Entity/ WorkflowInterface.php, line 134 - Contains Drupal\workflow\Entity\WorkflowInterface.
Class
- WorkflowInterface
- Defines a common interface for Workflow*Transition* objects.
Code
public function getState($sid);