public function SelectExtender::countQuery in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::countQuery()
Get the equivalent COUNT query of this query as a new query object.
Return value
\Drupal\Core\Database\Query\SelectInterface A new SelectQuery object with no fields or expressions besides COUNT(*).
Overrides SelectInterface::countQuery
1 method overrides SelectExtender::countQuery()
- SearchQuery::countQuery in core/
modules/ search/ src/ SearchQuery.php - Builds the default count query for SearchQuery.
File
- core/
lib/ Drupal/ Core/ Database/ Query/ SelectExtender.php, line 441 - Contains \Drupal\Core\Database\Query\SelectExtender.
Class
- SelectExtender
- The base extender class for Select queries.
Namespace
Drupal\Core\Database\QueryCode
public function countQuery() {
return $this->query
->countQuery();
}