function 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\workflows

Code

public function hasState($state_id);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.