function PagerManager::getMaxPagerElementId
Same name 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()
- 11.x 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));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.