public function QueueInterface::selectPage in Purge 8.3
Select a page of queue data with a limited number of items.
This method facilitates end-user inspection of the queue by letting it select a set of data records, without the ability to further interact with the returned data. The items returned aren't claimed and no action is taken on them.
Parameters
int $page: Pages always start at 1 and the highest available page is returned by ::selectPageMax(), which bases its information on the set limit that in turn gets returned by selectPageLimit(). When page numbers are given without any data in it, the resulting return value will be empty.
Return value
array[] Returns a non-associative array with item objects or the array is simply empty. The objects contain at least the following properties:
- data: the same as what what passed into createItem().
- item_id: the unique ID returned from createItem().
- created: timestamp when the item was put into the queue.
See also
\Drupal\purge\Plugin\Purge\Queue\QueueInterface::selectPageLimit
\Drupal\purge\Plugin\Purge\Queue\QueueInterface::selectPageMax
2 methods override QueueInterface::selectPage()
- DatabaseQueue::selectPage in src/
Plugin/ Purge/ Queue/ DatabaseQueue.php - Select a page of queue data with a limited number of items.
- MemoryQueue::selectPage in src/
Plugin/ Purge/ Queue/ MemoryQueue.php - Select a page of queue data with a limited number of items.
File
- src/
Plugin/ Purge/ Queue/ QueueInterface.php, line 104
Class
- QueueInterface
- Describes a ReliableQueueInterface compliant queue that can hold queue items.
Namespace
Drupal\purge\Plugin\Purge\QueueCode
public function selectPage($page = 1);