You are here

public function Schedule::getLastRun in Backup and Migrate 8.4

Same name and namespace in other branches
  1. 5.0.x src/Entity/Schedule.php \Drupal\backup_migrate\Entity\Schedule::getLastRun()

Return value

int $timestamp The unix time this schedule was last run.

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 139

Class

Schedule
Defines the Schedule entity.

Namespace

Drupal\backup_migrate\Entity

Code

public function getLastRun() {
  return \Drupal::keyValue('backup_migrate_schedule:last_run')
    ->get($this
    ->id());
}