Skip to content
Snippets Groups Projects
Commit 994b3c31 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #2061275 by StephaneQ: Page falsely states that hook_cron() is required...

Issue #2061275 by StephaneQ: Page falsely states that hook_cron() is required to use hook_cron_queue_info().
parent 38680332
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -162,7 +162,7 @@ function hook_data_type_info_alter(&$data_types) {
* again an associative array. Possible keys are:
* - 'worker callback': A PHP callable to call. It will be called
* with one argument, the item created via
* Drupal\Core\Queue\QueueInterface::createItem() in hook_cron().
* \Drupal\Core\Queue\QueueInterface::createItem().
* - 'cron': (optional) An associative array containing the optional key:
* - 'time': (optional) How much time Drupal cron should spend on calling
* this worker in seconds. Defaults to 15.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment