You are here

public function Memory::deleteItem in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Queue/Memory.php \Drupal\Core\Queue\Memory::deleteItem()

Deletes a finished item from the queue.

Parameters

$item: The item returned by \Drupal\Core\Queue\QueueInterface::claimItem().

Overrides QueueInterface::deleteItem

File

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

Class

Memory
Static queue implementation.

Namespace

Drupal\Core\Queue

Code

public function deleteItem($item) {
  unset($this->queue[$item->item_id]);
}