You are here

public function QueueServiceInterface::add in Purge 8.3

Add invalidation objects to the queue, schedule for later purging.

Parameters

\Drupal\purge\Plugin\Purge\Queuer\QueuerInterface $queuer: The queuer plugin that is queueing the invalidation objects.

\Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface[] $invalidations: A non-associative array with invalidation objects to be added to the queue. After the items have been added to the queue, they can be claimed to be processed by a queue processor.

1 method overrides QueueServiceInterface::add()
QueueService::add in src/Plugin/Purge/Queue/QueueService.php
Add invalidation objects to the queue, schedule for later purging.

File

src/Plugin/Purge/Queue/QueueServiceInterface.php, line 24

Class

QueueServiceInterface
Describes a service that lets invalidations interact with a queue backend.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function add(QueuerInterface $queuer, array $invalidations);