W3cubDocs

/Drupal 8

public function QueueInterface::createQueue

public QueueInterface::createQueue()

Creates a queue.

Called during installation and should be used to perform any necessary initialization operations. This should not be confused with the constructor for these objects, which is called every time an object is instantiated to operate on a queue. This operation is only needed the first time a given queue is going to be initialized (for example, to make a new database table or directory to hold tasks for the queue -- it depends on the queue implementation if this is necessary at all).

File

core/lib/Drupal/Core/Queue/QueueInterface.php, line 103

Class

QueueInterface
Interface for a queue.

Namespace

Drupal\Core\Queue

Code

public function createQueue();

© 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!Core!Queue!QueueInterface.php/function/QueueInterface::createQueue/8.1.x