1 batch.queue.inc public BatchMemoryQueue::getAllItems()

Retrieves all remaining items in the queue.

This is specific to Batch API and is not part of the BackdropQueueInterface.

File

core/includes/batch.queue.inc, line 76
Queue handlers used by the Batch API.

Class

BatchMemoryQueue
Defines a batch queue for non-progressive batches.

Code

public function getAllItems() {
  $result = array();
  foreach ($this->queue as $item) {
    $result[] = $item->data;
  }
  return $result;
}