function PagerManagerInterface::getPager

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Pager/PagerManagerInterface.php \Drupal\Core\Pager\PagerManagerInterface::getPager()
  2. 10 core/lib/Drupal/Core/Pager/PagerManagerInterface.php \Drupal\Core\Pager\PagerManagerInterface::getPager()
  3. 11.x core/lib/Drupal/Core/Pager/PagerManagerInterface.php \Drupal\Core\Pager\PagerManagerInterface::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.

1 method overrides PagerManagerInterface::getPager()
PagerManager::getPager in core/lib/Drupal/Core/Pager/PagerManager.php
Gets a pager from the static cache.

File

core/lib/Drupal/Core/Pager/PagerManagerInterface.php, line 121

Class

PagerManagerInterface
This is a service for pager information.

Namespace

Drupal\Core\Pager

Code

public function getPager($element = 0);

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