function WorkflowTypeInterface::getRequiredStates

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getRequiredStates()
  2. 8.9.x core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getRequiredStates()
  3. 10 core/modules/workflows/src/WorkflowTypeInterface.php \Drupal\workflows\WorkflowTypeInterface::getRequiredStates()

Gets the required states of workflow type.

This is usually specified in the workflow type annotation.

Return value

string[] The required states.

See also

\Drupal\workflows\Annotation\WorkflowType

1 method overrides WorkflowTypeInterface::getRequiredStates()
WorkflowTypeBase::getRequiredStates in core/modules/workflows/src/Plugin/WorkflowTypeBase.php
Gets the required states of workflow type.

File

core/modules/workflows/src/WorkflowTypeInterface.php, line 78

Class

WorkflowTypeInterface
An interface for Workflow type plugins.

Namespace

Drupal\workflows

Code

public function getRequiredStates();

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