You are here

public function Pager::getTotalPages in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Pager/Pager.php \Drupal\Core\Pager\Pager::getTotalPages()
  2. 9 core/lib/Drupal/Core/Pager/Pager.php \Drupal\Core\Pager\Pager::getTotalPages()

Gets the total number of pages.

Return value

int The total number of pages.

File

core/lib/Drupal/Core/Pager/Pager.php, line 97

Class

Pager
A value object that represents a pager.

Namespace

Drupal\Core\Pager

Code

public function getTotalPages() {
  return $this->totalPages;
}