QueueWorker::$cron

Same name in other branches
  1. 9 core/lib/Drupal/Core/Annotation/QueueWorker.php \Drupal\Core\Annotation\QueueWorker::cron
  2. 10 core/lib/Drupal/Core/Annotation/QueueWorker.php \Drupal\Core\Annotation\QueueWorker::cron
  3. 11.x core/lib/Drupal/Core/Annotation/QueueWorker.php \Drupal\Core\Annotation\QueueWorker::cron

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.

Type: array (optional)

File

core/lib/Drupal/Core/Annotation/QueueWorker.php, line 61

Class

QueueWorker
Declare a worker class for processing a queue item.

Namespace

Drupal\Core\Annotation

Code

public $cron;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.