Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CronController.php

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 core/modules/system/system.routing.yml
core/modules/system/system.routing.yml

File

core/modules/system/src/CronController.php, line 37

Class

CronController
Controller for Cron handling.

Namespace

Drupal\system

Code

public function run() {
    $this->cron
        ->run();
    // HTTP 204 is "No content", meaning "I did what you asked and we're done."
    return new Response('', 204);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal