You are here

public function QueueService::selectPageMax in Purge 8.3

Retrieve the highest page number containing data in the queue.

This method relies on ::selectPageLimit() for finding out how many items are shown on a single page. The resulting division is rounded up so that the last page will usually have less items then the limit.

Return value

int The highest page number number with data on it.

Overrides QueueServiceInterface::selectPageMax

See also

\Drupal\purge\Plugin\Purge\Queue\QueueServiceInterface::selectPageLimit

File

src/Plugin/Purge/Queue/QueueService.php, line 519

Class

QueueService
Provides the service that lets invalidations interact with a queue backend.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function selectPageMax() {
  $this
    ->initializeQueue();
  return $this->queue
    ->selectPageMax();
}