function Pager::getTotalPages
Same name in other branches
- 9 core/lib/Drupal/Core/Pager/Pager.php \Drupal\Core\Pager\Pager::getTotalPages()
- 10 core/lib/Drupal/Core/Pager/Pager.php \Drupal\Core\Pager\Pager::getTotalPages()
- 11.x 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.
1 call to Pager::getTotalPages()
- Pager::setCurrentPage in core/
lib/ Drupal/ Core/ Pager/ Pager.php - Sets the current page to a valid value within range.
File
-
core/
lib/ Drupal/ Core/ Pager/ Pager.php, line 97
Class
- Pager
- A value object that represents a pager.
Namespace
Drupal\Core\PagerCode
public function getTotalPages() {
return $this->totalPages;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.