You are here

public function WorkflowTypeBase::hasState in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::hasState()
  2. 9 core/modules/workflows/src/Plugin/WorkflowTypeBase.php \Drupal\workflows\Plugin\WorkflowTypeBase::hasState()
1 method overrides WorkflowTypeBase::hasState()
PredefinedStatesWorkflowTestType::hasState in core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/PredefinedStatesWorkflowTestType.php
Determines if the workflow has a state with the provided ID.

File

core/modules/workflows/src/Plugin/WorkflowTypeBase.php, line 134

Class

WorkflowTypeBase
A base class for Workflow type plugins.

Namespace

Drupal\workflows\Plugin

Code

public function hasState($state_id) {
  return isset($this->configuration['states'][$state_id]);
}