function PagerPluginBase::useCountQuery

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\PagerPluginBase::useCountQuery()
  2. 8.9.x core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\PagerPluginBase::useCountQuery()
  3. 10 core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\PagerPluginBase::useCountQuery()

Determine if a pager needs a count query.

If a pager needs a count query, a simple query

3 methods override PagerPluginBase::useCountQuery()
Mini::useCountQuery in core/modules/views/src/Plugin/views/pager/Mini.php
Determine if a pager needs a count query.
None::useCountQuery in core/modules/views/src/Plugin/views/pager/None.php
Determine if a pager needs a count query.
Some::useCountQuery in core/modules/views/src/Plugin/views/pager/Some.php
Determine if a pager needs a count query.

File

core/modules/views/src/Plugin/views/pager/PagerPluginBase.php, line 176

Class

PagerPluginBase
Base class for views pager plugins.

Namespace

Drupal\views\Plugin\views\pager

Code

public function useCountQuery() {
    return TRUE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.