public function CronController::run

Run Cron once.

Return value

\Symfony\Component\HttpFoundation\Response A Symfony response object.

1 string reference to 'CronController::run'
system.routing.yml in drupal/core/modules/system/system.routing.yml
drupal/core/modules/system/system.routing.yml

File

drupal/core/modules/system/lib/Drupal/system/CronController.php, line 24
Definition of Drupal\system\CronController.

Class

CronController
Controller for Cron handling.

Namespace

Drupal\system

Code

public function run() {

  // @todo Make this an injected object.
  drupal_cron_run();

  // HTTP 204 is "No content", meaning "I did what you asked and we're done."
  return new Response('', 204);
}