W3cubDocs

/Drupal 8

public function Memory::deleteQueue

public Memory::deleteQueue()

Deletes a queue and every item in the queue.

Overrides QueueInterface::deleteQueue

File

core/lib/Drupal/Core/Queue/Memory.php, line 102

Class

Memory
Static queue implementation.

Namespace

Drupal\Core\Queue

Code

public function deleteQueue() {
  $this->queue = array();
  $this->idSequence = 0;
}

© 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!Memory.php/function/Memory::deleteQueue/8.1.x