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

File

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

Class

CronInterface
An interface for running cron tasks.

Namespace

Drupal\Core

Code

public function run();