function PagerManager::setPager
Same name in other branches
- 9 core/lib/Drupal/Core/Pager/PagerManager.php \Drupal\Core\Pager\PagerManager::setPager()
- 10 core/lib/Drupal/Core/Pager/PagerManager.php \Drupal\Core\Pager\PagerManager::setPager()
- 11.x 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 104
Class
- PagerManager
- Provides a manager for pagers.
Namespace
Drupal\Core\PagerCode
protected function setPager(Pager $pager, $element = 0) {
$this->pagers[$element] = $pager;
$this->updateGlobals();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.