You are here

public function ReadinessCheckerManager::timestamp in Automatic Updates 8

Get timestamp of most recent run.

Return value

int A unix timestamp of most recent completed run.

Overrides ReadinessCheckerManagerInterface::timestamp

File

src/ReadinessChecker/ReadinessCheckerManager.php, line 96

Class

ReadinessCheckerManager
Defines a chained readiness checker implementation combining multiple checks.

Namespace

Drupal\automatic_updates\ReadinessChecker

Code

public function timestamp() {
  $last_check_timestamp = $this->keyValue
    ->get('readiness_check_timestamp');
  if (!is_numeric($last_check_timestamp)) {
    $last_check_timestamp = \Drupal::state()
      ->get('install_time', 0);
  }
  return $last_check_timestamp;
}