You are here

public function WorkflowTypeInterface::hasState in Drupal 8

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

Class

WorkflowTypeInterface
An interface for Workflow type plugins.

Namespace

Drupal\workflows

Code

public function hasState($state_id);