function PagerSelectExtender::getCountQuery
Same name in other branches
- 9 core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php \Drupal\Core\Database\Query\PagerSelectExtender::getCountQuery()
- 8.9.x core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php \Drupal\Core\Database\Query\PagerSelectExtender::getCountQuery()
- 11.x core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php \Drupal\Core\Database\Query\PagerSelectExtender::getCountQuery()
Retrieve the count query for this pager.
The count query may be specified manually or, by default, taken from the query we are extending.
Return value
\Drupal\Core\Database\Query\SelectInterface A count query object.
File
-
core/
lib/ Drupal/ Core/ Database/ Query/ PagerSelectExtender.php, line 119
Class
- PagerSelectExtender
- Query extender for pager queries.
Namespace
Drupal\Core\Database\QueryCode
public function getCountQuery() {
if ($this->customCountQuery) {
return $this->customCountQuery;
}
else {
return $this->query
->countQuery();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.