function CronInterface::run

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/CronInterface.php \Drupal\Core\CronInterface::run()
  2. 10 core/lib/Drupal/Core/CronInterface.php \Drupal\Core\CronInterface::run()
  3. 11.x core/lib/Drupal/Core/CronInterface.php \Drupal\Core\CronInterface::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.

2 methods override CronInterface::run()
Cron::run in core/lib/Drupal/Core/ProxyClass/Cron.php
Executes a cron run.
Cron::run in core/lib/Drupal/Core/Cron.php
Executes a cron run.

File

core/lib/Drupal/Core/CronInterface.php, line 20

Class

CronInterface
An interface for running cron tasks.

Namespace

Drupal\Core

Code

public function run();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.