function PagerSelectExtender::__construct
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php \Drupal\Core\Database\Query\PagerSelectExtender::__construct()
- 10 core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php \Drupal\Core\Database\Query\PagerSelectExtender::__construct()
- 11.x core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php \Drupal\Core\Database\Query\PagerSelectExtender::__construct()
Constructs a PagerSelectExtender object.
Parameters
\Drupal\Core\Database\Query\SelectInterface $query: Select query object.
\Drupal\Core\Database\Connection $connection: Database connection object.
Overrides SelectExtender::__construct
File
-
core/
lib/ Drupal/ Core/ Database/ Query/ PagerSelectExtender.php, line 60
Class
- PagerSelectExtender
- Query extender for pager queries.
Namespace
Drupal\Core\Database\QueryCode
public function __construct(SelectInterface $query, Connection $connection) {
parent::__construct($query, $connection);
// Add pager tag. Do this here to ensure that it is always added before
// preExecute() is called.
$this->addTag('pager');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.