public function QueueBase::getInfo

8.0.x QueueBase.php public QueueBase::getInfo($name)
7.x QueueBase.php public QueueBase::getInfo($name)
master QueueBase.php public QueueBase::getInfo($name)

Returns a given queue definition.

Parameters

string $name: The name of the queue to run.

Overrides QueueInterface::getInfo

1 call to QueueBase::getInfo()
Queue7::run in lib/Drush/Queue/Queue7.php
Runs a given queue.

File

lib/Drush/Queue/QueueBase.php, line 33

Namespace

Drush\Queue

Class

QueueBase

Code

public function getInfo($name) {
  $queues = $this->getQueues();
  if (!isset($queues[$name])) {
    throw new QueueException(dt('Could not find the !name queue.', array('!name' => $name)));
  }
  return $queues[$name];
}