PagerSelectExtender::getCountQuery

public 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 120

Class

PagerSelectExtender
Query extender for pager queries.

Namespace

Drupal\Core\Database\Query

Code

1
2
3
4
5
6
7
8
public function getCountQuery() {
  if ($this->customCountQuery) {
    return $this->customCountQuery;
  }
  else {
    return $this->query->countQuery();
  }
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.