public function QueueService::delete in Purge 8.3
Delete invalidation objects from the queue.
Parameters
\Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface[] $invalidations: A non-associative array with invalidation objects to be deleted from the queue. The object instances and references thereto, remain to exist until the queue service is destructed, but should not be accessed anymore as they will be deleted anyway.
Overrides QueueServiceInterface::delete
File
- src/
Plugin/ Purge/ Queue/ QueueService.php, line 324
Class
- QueueService
- Provides the service that lets invalidations interact with a queue backend.
Namespace
Drupal\purge\Plugin\Purge\QueueCode
public function delete(array $invalidations) {
$this->buffer
->set($invalidations, TxBuffer::DELETING);
$count = count($invalidations);
$this->logger
->debug("deleting @no items.", [
'@no' => $count,
]);
}