function PagerDefault::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

SelectQueryInterface A count query object.

File

includes/pager.inc, line 119

Class

PagerDefault
Query extender for pager queries.

Code

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.