You are here

function Workflow::getCreationState in Workflow 7

Same name and namespace in other branches
  1. 7.2 includes/Entity/Workflow.php \Workflow::getCreationState()

Property functions.

1 call to Workflow::getCreationState()
Workflow::getFirstSid in includes/Entity/Workflow.php
Get the first valid state ID, after the creation state. Use WorkflowState::getOptions(), because this does a access check.

File

includes/Entity/Workflow.php, line 243
Contains workflow\includes\Entity\Workflow.

Class

Workflow
@file Contains workflow\includes\Entity\Workflow.

Code

function getCreationState() {
  if (!isset($this->creation_state)) {
    $this->creation_state = WorkflowState::load($this->creation_sid);
  }
  return $this->creation_state;
}