protected function PagerManager::getMaxPagerElementId in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Pager/PagerManager.php \Drupal\Core\Pager\PagerManager::getMaxPagerElementId()
- 10 core/lib/Drupal/Core/Pager/PagerManager.php \Drupal\Core\Pager\PagerManager::getMaxPagerElementId()
Gets the extent of the pager page element IDs.
Return value
int The maximum element ID available, -1 if there are no elements.
1 call to PagerManager::getMaxPagerElementId()
- PagerManager::getUpdatedParameters in core/
lib/ Drupal/ Core/ Pager/ PagerManager.php - Gets the URL query parameter array of a pager link.
File
- core/
lib/ Drupal/ Core/ Pager/ PagerManager.php, line 92
Class
- PagerManager
- Provides a manager for pagers.
Namespace
Drupal\Core\PagerCode
protected function getMaxPagerElementId() {
return empty($this->pagers) ? -1 : max(array_keys($this->pagers));
}