class CronController

Controller for Cron handling.

Hierarchy

Expanded class hierarchy of CronController

File

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

Namespace

Drupal\system
View source
class CronController {

  /**
   * Run Cron once.
   *
   * @return Symfony\Component\HttpFoundation\Response
   *   A Symfony response object.
   */
  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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CronController::run public function Run Cron once.