function PagerManager::reservePagerElementId

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

Overrides PagerManagerInterface::reservePagerElementId

File

core/lib/Drupal/Core/Pager/PagerManager.php, line 110

Class

PagerManager
Provides a manager for pagers.

Namespace

Drupal\Core\Pager

Code

public function reservePagerElementId(int $element) : void {
    $this->maxPagerElementId = max($element, $this->maxPagerElementId);
    // BC for PagerSelectExtender::$maxElement.
    // @todo remove the line below in D10.
    PagerSelectExtender::$maxElement = $this->getMaxPagerElementId();
}

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