public function Workflow::getCreationSid in Workflow 8
Gets the ID of the initial state for a newly created entity.
Overrides WorkflowInterface::getCreationSid
1 call to Workflow::getCreationSid()
- Workflow::isValid in src/
Entity/ Workflow.php - Validate the workflow. Generate a message if not correct.
File
- src/
Entity/ Workflow.php, line 294
Class
- Workflow
- Workflow configuration entity to persistently store configuration.
Namespace
Drupal\workflow\EntityCode
public function getCreationSid() {
if (!$this->creation_sid) {
$state = $this
->getCreationState();
return $state
->id();
}
return $this->creation_sid;
}