You are here

public function QueueInterface::createItemMultiple in Purge 8.3

Add multiple items to the queue and store them efficiently.

Parameters

array $items: Non-associative array containing arrays with arbitrary data to be associated with the new tasks in the queue.

Return value

array|false Non-associative array containing unique ID's for the items that were saved successfully, otherwise FALSE. We don't guarantee the item was committed to disk etc, but as far as we know, the item is now in the queue.

2 methods override QueueInterface::createItemMultiple()
DatabaseQueue::createItemMultiple in src/Plugin/Purge/Queue/DatabaseQueue.php
Add multiple items to the queue and store them efficiently.
QueueBase::createItemMultiple in src/Plugin/Purge/Queue/QueueBase.php
Add multiple items to the queue and store them efficiently.

File

src/Plugin/Purge/Queue/QueueInterface.php, line 26

Class

QueueInterface
Describes a ReliableQueueInterface compliant queue that can hold queue items.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function createItemMultiple(array $items);