function Memory::deleteItem

Same name in other branches
  1. 9 core/lib/Drupal/Core/Queue/Memory.php \Drupal\Core\Queue\Memory::deleteItem()
  2. 10 core/lib/Drupal/Core/Queue/Memory.php \Drupal\Core\Queue\Memory::deleteItem()
  3. 11.x core/lib/Drupal/Core/Queue/Memory.php \Drupal\Core\Queue\Memory::deleteItem()

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]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.