You are here

public function BatchMemory::getAllItems in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Queue/BatchMemory.php \Drupal\Core\Queue\BatchMemory::getAllItems()

Retrieves all remaining items in the queue.

This is specific to Batch API and is not part of the \Drupal\Core\Queue\QueueInterface.

Return value

array An array of queue items.

File

core/lib/Drupal/Core/Queue/BatchMemory.php, line 47
Contains \Drupal\Core\Queue\BatchMemory.

Class

BatchMemory
Defines a batch queue handler used by the Batch API for non-progressive batches.

Namespace

Drupal\Core\Queue

Code

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