public function Schedule::setExecuted in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Entity/Schedule.php \Drupal\business_rules\Entity\Schedule::setExecuted()
Sets the executed status of a Schedule.
Parameters
bool $executed: TRUE to set this Schedule to executed, FALSE to set it to non-executed.
Return value
\Drupal\business_rules\Entity\ScheduleInterface The called Schedule entity.
Overrides ScheduleInterface::setExecuted
File
- src/
Entity/ Schedule.php, line 86
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\business_rules\EntityCode
public function setExecuted($executed) {
$this
->set('status', $executed ? TRUE : FALSE);
$this
->setExecutedTime(time());
return $this;
}