You are here

public function MemoryQueue::deleteItemMultiple in Purge 8.3

Delete multiple items from the queue at once.

Parameters

array $items: Non-associative array with item objects as returned by claimItemMultiple() or \Drupal\Core\Queue\QueueInterface::claimItem().

Overrides QueueBase::deleteItemMultiple

File

src/Plugin/Purge/Queue/MemoryQueue.php, line 182

Class

MemoryQueue
A QueueInterface compliant volatile memory buffer queue.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function deleteItemMultiple(array $items) {
  $this
    ->bufferInitialize();
  foreach ($items as $item) {
    $this
      ->deleteItem($item);
  }
}