public function WorkflowTypeInterface::getState in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getState()
- 10 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getState()
Gets a workflow state.
Parameters
string $state_id: The state's ID.
Return value
\Drupal\workflows\StateInterface The workflow state.
Throws
\InvalidArgumentException Thrown if $state_id does not exist.
1 method overrides WorkflowTypeInterface::getState()
- WorkflowTypeBase::getState in core/
modules/ workflows/ src/ Plugin/ WorkflowTypeBase.php - Gets a workflow state.
File
- core/
modules/ workflows/ src/ WorkflowTypeInterface.php, line 148
Class
- WorkflowTypeInterface
- An interface for Workflow type plugins.
Namespace
Drupal\workflowsCode
public function getState($state_id);