On this page
public function BatchMemory::getAllItems
public 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 42
Class
- BatchMemory
- Defines a batch queue handler used by the Batch API for non-progressive batches.
Namespace
Drupal\Core\QueueCode
public function getAllItems() {
$result = array();
foreach ($this->queue as $item) {
$result[] = $item->data;
}
return $result;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Queue!BatchMemory.php/function/BatchMemory::getAllItems/8.1.x