You are here

public function QueueBasePageTrait::selectPageMax in Purge 8.3

File

src/Plugin/Purge/Queue/QueueBasePageTrait.php, line 30

Class

QueueBasePageTrait
Adds default selectPage* method implementations to queue implementations.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function selectPageMax() {
  $max = (int) $this
    ->numberOfItems() / $this
    ->selectPageLimit();
  return intval(ceil($max));
}