You are here

public function Workflow::getCreationState in Workflow 7.2

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

Gets the initial state for a newly created entity.

Overrides WorkflowInterface::getCreationState

2 calls to Workflow::getCreationState()
Workflow::getFirstSid in includes/Entity/Workflow.php
Gets the first valid state ID, after the creation state.
Workflow::save in includes/Entity/Workflow.php
Given information, update or insert a new workflow.

File

includes/Entity/Workflow.php, line 385
Contains workflow\includes\Entity\Workflow. Contains workflow\includes\Entity\WorkflowController.

Class

Workflow

Code

public function getCreationState() {
  $sid = $this
    ->getCreationSid();
  return $sid ? $this
    ->getState($sid) : $this
    ->createState(WORKFLOW_CREATION_STATE_NAME);
}