public function WorkflowScheduledTransition::__construct in Workflow 8
@inheritdoc.
Overrides WorkflowTransition::__construct
File
- src/
Entity/ WorkflowScheduledTransition.php, line 53
Class
- WorkflowScheduledTransition
- Implements a scheduled transition, as shown on Workflow form.
Namespace
Drupal\workflow\EntityCode
public function __construct(array $values = [], $entityType = 'workflow_scheduled_transition', $bundle = FALSE, $translations = []) {
// Please be aware that $entity_type and $entityType are different things!
parent::__construct($values, $entityType, $bundle, $translations);
// This transition is scheduled.
$this->isScheduled = TRUE;
// This transition is not executed.
$this->isExecuted = FALSE;
}