public function WorkflowInterface::getState in Workflow 8
Gets a state for a given workflow.
Parameters
string $sid: A state ID.
Return value
\Drupal\workflow\Entity\WorkflowState A WorkflowState object.
1 method overrides WorkflowInterface::getState()
- Workflow::getState in src/
Entity/ Workflow.php - Gets a state for a given workflow.
File
- src/
Entity/ WorkflowInterface.php, line 126
Class
- WorkflowInterface
- Defines a common interface for Workflow*Transition* objects.
Namespace
Drupal\workflow\EntityCode
public function getState($sid);