public function Memory::deleteItem in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Queue/Memory.php \Drupal\Core\Queue\Memory::deleteItem()
- 10 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 78
Class
- Memory
- Static queue implementation.
Namespace
Drupal\Core\QueueCode
public function deleteItem($item) {
unset($this->queue[$item->item_id]);
}