function PagerManager::getPager

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Pager/PagerManager.php \Drupal\Core\Pager\PagerManager::getPager()
  2. 10 core/lib/Drupal/Core/Pager/PagerManager.php \Drupal\Core\Pager\PagerManager::getPager()
  3. 11.x core/lib/Drupal/Core/Pager/PagerManager.php \Drupal\Core\Pager\PagerManager::getPager()

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 65

Class

PagerManager
Provides a manager for pagers.

Namespace

Drupal\Core\Pager

Code

public function getPager($element = 0) {
    return $this->pagers[$element] ?? NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.