You are here

public function WorkflowsField::getInitialState in Workflows Field 8

Same name and namespace in other branches
  1. 2.x src/Plugin/WorkflowType/WorkflowsField.php \Drupal\workflows_field\Plugin\WorkflowType\WorkflowsField::getInitialState()

Gets the initial state for the workflow.

Return value

\Drupal\workflows\StateInterface The initial state.

Overrides WorkflowTypeBase::getInitialState

File

src/Plugin/WorkflowType/WorkflowsField.php, line 24

Class

WorkflowsField
Workflow field Workflow.

Namespace

Drupal\workflows_field\Plugin\WorkflowType

Code

public function getInitialState() {
  return $this
    ->getState($this->configuration['initial_state']);
}