public function WorkflowTypeInterface::hasState in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::hasState()
- 9 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.
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);