Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function BatchMemoryQueue::getAllItems

Retrieves all remaining items in the queue.

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

File

includes/batch.queue.inc, line 77

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.