function Connection::getPagerManager

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::getPagerManager()
  2. 11.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::getPagerManager()

Get the pager manager service, if available.

Return value

\Drupal\Core\Pager\PagerManagerInterface The pager manager service, if available.

Throws

\Drupal\Core\DependencyInjection\ContainerNotInitializedException If the container has not been initialized yet.

File

core/lib/Drupal/Core/Database/Connection.php, line 2069

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function getPagerManager() : PagerManagerInterface {
    return \Drupal::service('pager.manager');
}

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