function StatusInfoDrupal8::lastCheck

8.0.x StatusInfoDrupal8.php StatusInfoDrupal8::lastCheck()
7.x StatusInfoDrupal8.php StatusInfoDrupal8::lastCheck()
master StatusInfoDrupal8.php StatusInfoDrupal8::lastCheck()

Returns time of last check of available updates.

Overrides StatusInfoInterface::lastCheck

1 method overrides StatusInfoDrupal8::lastCheck()
StatusInfoDrupal7::lastCheck in lib/Drush/UpdateService/StatusInfoDrupal7.php
Returns time of last check of available updates.

File

lib/Drush/UpdateService/StatusInfoDrupal8.php, line 24
Implementation of 'drupal' update_status engine for Drupal 8.

Namespace

Drush\UpdateService

Class

StatusInfoDrupal8

Code

function lastCheck() {
  $last_check = \Drupal::state()->get('update.last_check') ? : 0;
  return $last_check;
}