function QueueInterface::createQueue
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Queue/QueueInterface.php \Drupal\Core\Queue\QueueInterface::createQueue()
- 10 core/lib/Drupal/Core/Queue/QueueInterface.php \Drupal\Core\Queue\QueueInterface::createQueue()
- 11.x core/lib/Drupal/Core/Queue/QueueInterface.php \Drupal\Core\Queue\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).
2 methods override QueueInterface::createQueue()
- DatabaseQueue::createQueue in core/
lib/ Drupal/ Core/ Queue/ DatabaseQueue.php - Creates a queue.
- Memory::createQueue in core/
lib/ Drupal/ Core/ Queue/ Memory.php - Creates a queue.
File
-
core/
lib/ Drupal/ Core/ Queue/ QueueInterface.php, line 103
Class
- QueueInterface
- Interface for a queue.
Namespace
Drupal\Core\QueueCode
public function createQueue();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.