You are here

protected function Cron::setCronLastTime in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Cron.php \Drupal\Core\Cron::setCronLastTime()

Records and logs the request time for this cron invocation.

1 call to Cron::setCronLastTime()
Cron::run in core/lib/Drupal/Core/Cron.php
Executes a cron run.

File

core/lib/Drupal/Core/Cron.php, line 146
Contains \Drupal\Core\Cron.

Class

Cron
The Drupal core Cron service.

Namespace

Drupal\Core

Code

protected function setCronLastTime() {

  // Record cron time.
  $this->state
    ->set('system.cron_last', REQUEST_TIME);
  $this->logger
    ->notice('Cron run completed.');
}