You are here

public function Schedule::setLastRun 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::setLastRun()

Parameters

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

1 call to Schedule::setLastRun()
Schedule::run in src/Entity/Schedule.php

File

src/Entity/Schedule.php, line 131

Class

Schedule
Defines the Schedule entity.

Namespace

Drupal\backup_migrate\Entity

Code

public function setLastRun($timestamp) {
  \Drupal::keyValue('backup_migrate_schedule:last_run')
    ->set($this
    ->id(), $timestamp);
}