function WorkflowTypeInterface::getInitialState

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

Gets the initial state for the workflow.

Return value

\Drupal\workflows\StateInterface The initial state.

2 methods override WorkflowTypeInterface::getInitialState()
ContentModerationInterface::getInitialState in core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php
WorkflowTypeBase::getInitialState in core/modules/workflows/src/Plugin/WorkflowTypeBase.php
Gets the initial state for the workflow.

File

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

Class

WorkflowTypeInterface
An interface for Workflow type plugins.

Namespace

Drupal\workflows

Code

public function getInitialState();

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