public function Workflow::getCreationSid in Workflow 7.2
Same name and namespace in other branches
- 7 includes/Entity/Workflow.php \Workflow::getCreationSid()
Gets the ID of the initial state for a newly created entity.
Overrides WorkflowInterface::getCreationSid
2 calls to Workflow::getCreationSid()
- Workflow::getCreationState in includes/
Entity/ Workflow.php - Gets the initial state for a newly created entity.
- Workflow::isValid in includes/
Entity/ Workflow.php - Validate the workflow. Generate a message if not correct.
File
- includes/
Entity/ Workflow.php, line 393 - Contains workflow\includes\Entity\Workflow. Contains workflow\includes\Entity\WorkflowController.
Class
Code
public function getCreationSid() {
if (!$this->creation_sid) {
foreach ($this
->getStates($all = TRUE) as $state) {
if ($state
->isCreationState()) {
$this->creation_sid = $state->sid;
}
}
}
return $this->creation_sid;
}