public function Schedule::setExecuted in Business Rules 8
Same name and namespace in other branches
- 2.x 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 82
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;
}