You are here

public function QueueMongodb::deleteItem in MongoDB 8

Delete a finished item from the queue.

Parameters

object $item: The item to delete.

Overrides QueueInterface::deleteItem

File

src/QueueMongodb.php, line 131
Contains \Drupal\mongodb\QueueMongodb

Class

QueueMongodb
MongoDB queue implementation.

Namespace

Drupal\mongodb

Code

public function deleteItem($item) {
  $this
    ->mongoCollection()
    ->remove(array(
    '_id' => $item->_id,
  ));
}