public function PagerManager::getPager in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Pager/PagerManager.php \Drupal\Core\Pager\PagerManager::getPager()
- 10 core/lib/Drupal/Core/Pager/PagerManager.php \Drupal\Core\Pager\PagerManager::getPager()
Gets a pager from the static cache.
Parameters
int $element: The pager element index.
Return value
\Drupal\Core\Pager\Pager|null The pager, or null if not found.
Overrides PagerManagerInterface::getPager
1 call to PagerManager::getPager()
- 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 58
Class
- PagerManager
- Provides a manager for pagers.
Namespace
Drupal\Core\PagerCode
public function getPager($element = 0) {
return isset($this->pagers[$element]) ? $this->pagers[$element] : NULL;
}