public static Drupal::queue($name, $reliable = FALSE)
Returns a queue for the given queue name.
The following values can be set in your settings.php file's $settings array to define which services are used for queues:
string $name: The name of the queue to work with.
bool $reliable: (optional) TRUE if the ordering of items and guaranteeing every item executes at least once is important, FALSE if scalability is the main concern. Defaults to FALSE.
\Drupal\Core\Queue\QueueInterface The queue object for a given name.
public static function queue($name, $reliable = FALSE) { return static::getContainer()->get('queue')->get($name, $reliable); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal.php/function/Drupal::queue/8.1.x