function PagerPluginBase::execute_count_query in Views (for Drupal 7) 8.3
Execute the count query, which will be done just prior to the query itself being executed.
1 method overrides PagerPluginBase::execute_count_query()
- None::execute_count_query in lib/
Drupal/ views/ Plugin/ views/ pager/ None.php - Execute the count query, which will be done just prior to the query itself being executed.
File
- lib/
Drupal/ views/ Plugin/ views/ pager/ PagerPluginBase.php, line 167 - Definition of Drupal\views\Plugin\views\pager\PagerPluginBase.
Class
- PagerPluginBase
- The base plugin to handle pager.
Namespace
Drupal\views\Plugin\views\pagerCode
function execute_count_query(&$count_query) {
$this->total_items = $count_query
->execute()
->fetchField();
if (!empty($this->options['offset'])) {
$this->total_items -= $this->options['offset'];
}
$this
->update_page_info();
return $this->total_items;
}