You are here

public function PagerPluginBase::useCountQuery in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\PagerPluginBase::useCountQuery()
  2. 9 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 146

Class

PagerPluginBase
Base class for views pager plugins.

Namespace

Drupal\views\Plugin\views\pager

Code

public function useCountQuery() {
  return TRUE;
}