You are here

service cron in Drupal 9

Same name and namespace in other branches
  1. 8 core/core.services.yml \cron
  2. 10 core/core.services.yml \cron

Class

Drupal\Core\Cron
11 string references to cron
core.services.yml in core/core.services.yml
core/core.services.yml
Cron::invokeCronHandlers in core/lib/Drupal/Core/Cron.php
Invokes any cron handlers implementing hook_cron.
Cron::processQueues in core/lib/Drupal/Core/Cron.php
Processes cron queues.
Cron::run in core/lib/Drupal/Core/Cron.php
Executes a cron run.
CronController::create in core/modules/system/src/CronController.php
Instantiates a new instance of this class.

... See full list

File

core/core.services.yml
core/core.services.yml

View source
  1. class: Drupal\Core\Cron
  2. arguments:
  3. - '@module_handler'
  4. - '@lock'
  5. - '@queue'
  6. - '@state'
  7. - '@account_switcher'
  8. - '@logger.channel.cron'
  9. - '@plugin.manager.queue_worker'
  10. - '@datetime.time'
  11. lazy: true