public Batch::getAllItems()
Retrieves all remaining items in the queue.
This is specific to Batch API and is not part of the \Drupal\Core\Queue\QueueInterface.
array An array of queue items.
public function getAllItems() { $result = array(); try { $items = $this->connection->query('SELECT data FROM {queue} q WHERE name = :name ORDER BY item_id ASC', array(':name' => $this->name))->fetchAll(); foreach ($items as $item) { $result[] = unserialize($item->data); } } catch (\Exception $e) { $this->catchException($e); } 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!Batch.php/function/Batch::getAllItems/8.1.x