You are here

public function Cron::run in Drupal 9

Same name in this branch
  1. 9 core/lib/Drupal/Core/Cron.php \Drupal\Core\Cron::run()
  2. 9 core/lib/Drupal/Core/ProxyClass/Cron.php \Drupal\Core\ProxyClass\Cron::run()
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/ProxyClass/Cron.php \Drupal\Core\ProxyClass\Cron::run()

Executes a cron run.

Do not call this function from a test. Use $this->cronRun() instead.

Return value

bool TRUE upon success, FALSE otherwise.

Overrides CronInterface::run

File

core/lib/Drupal/Core/ProxyClass/Cron.php, line 73

Class

Cron
Provides a proxy class for \Drupal\Core\Cron.

Namespace

Drupal\Core\ProxyClass

Code

public function run() {
  return $this
    ->lazyLoadItself()
    ->run();
}