protected function PagerManager::setPager in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Pager/PagerManager.php \Drupal\Core\Pager\PagerManager::setPager()
Saves a pager to the static cache.
Parameters
\Drupal\Core\Pager\Pager $pager: The pager.
int $element: The pager index.
1 call to PagerManager::setPager()
- PagerManager::createPager in core/
lib/ Drupal/ Core/ Pager/ PagerManager.php - Initializes a pager.
File
- core/
lib/ Drupal/ Core/ Pager/ PagerManager.php, line 125
Class
- PagerManager
- Provides a manager for pagers.
Namespace
Drupal\Core\PagerCode
protected function setPager(Pager $pager, $element = 0) {
$this->maxPagerElementId = max($element, $this->maxPagerElementId);
$this->pagers[$element] = $pager;
}