function WorkflowTypeBase::getRequiredStates

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

Overrides WorkflowTypeInterface::getRequiredStates

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

File

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

Class

WorkflowTypeBase
A base class for Workflow type plugins.

Namespace

Drupal\workflows\Plugin

Code

public function getRequiredStates() {
    return $this->getPluginDefinition()['required_states'];
}

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