public function Schedule::getLastRun in Backup and Migrate 5.0.x
Same name and namespace in other branches
- 8.4 src/Entity/Schedule.php \Drupal\backup_migrate\Entity\Schedule::getLastRun()
Return the unix time this schedule was last run.
Return value
int The timestamp.
1 call to Schedule::getLastRun()
- Schedule::getNextRun in src/
Entity/ Schedule.php - Get the next time this schedule should run.
File
- src/
Entity/ Schedule.php, line 163
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\backup_migrate\EntityCode
public function getLastRun() : int {
$allLast = static::state()
->get(static::STATE_NAME);
return (int) ($allLast[$this
->id()] ?? 0);
}