function WorkflowTypeInterface::hasState
Same name in other branches
- 8.9.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::hasState()
- 10 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::hasState()
- 11.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::hasState()
Determines if the workflow has a state with the provided ID.
Parameters
string $state_id: The state's ID.
Return value
bool TRUE if the workflow has a state with the provided ID, FALSE if not.
1 method overrides WorkflowTypeInterface::hasState()
- WorkflowTypeBase::hasState in core/
modules/ workflows/ src/ Plugin/ WorkflowTypeBase.php - Determines if the workflow has a state with the provided ID.
File
-
core/
modules/ workflows/ src/ WorkflowTypeInterface.php, line 119
Class
- WorkflowTypeInterface
- An interface for Workflow type plugins.
Namespace
Drupal\workflowsCode
public function hasState($state_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.