Queue6.php

  1. 8.0.x lib/Drush/Queue/Queue6.php
  2. 7.x lib/Drush/Queue/Queue6.php

Namespace

Drush\Queue

Classes

Namesort descending Description
Queue6

File

lib/Drush/Queue/Queue6.php
View source
  1. <?php
  2. namespace Drush\Queue;
  3. class Queue6 extends Queue7 {
  4. public function __construct() {
  5. // Drupal 6 has no core queue capabilities, and thus requires contrib.
  6. if (!module_exists('drupal_queue')) {
  7. throw new QueueException(dt('The drupal_queue module need to be installed/enabled.'));
  8. }
  9. else {
  10. drupal_queue_include();
  11. }
  12. }
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public function getQueues() {
  17. if (!isset(static::$queues)) {
  18. static::$queues = module_invoke_all('cron_queue_info');
  19. drupal_alter('cron_queue_info', static::$queues);
  20. }
  21. return static::$queues;
  22. }
  23. }