Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Cron.php

function 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 123

Class

Cron
The Drupal core Cron service.

Namespace

Drupal\Core

Code

protected function setCronLastTime() {
    // Record cron time.
    $request_time = $this->time
        ->getRequestTime();
    $this->state
        ->set('system.cron_last', $request_time);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal