diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/None.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/None.php index 40b0e24..f2e1e0a 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/None.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/None.php @@ -75,7 +75,7 @@ function get_items_per_page() { return 0; } - function execute_count_query(&$count_query) { + public function executeCountQuery(&$count_query) { // If we are displaying all items, never count. But we can update the count in post_execute. } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php index 49ef067..a97742f 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php @@ -177,7 +177,7 @@ function use_count_query() { * Execute the count query, which will be done just prior to the query * itself being executed. */ - function execute_count_query(&$count_query) { + public function executeCountQuery(&$count_query) { $this->total_items = $count_query->execute()->fetchField(); if (!empty($this->options['offset'])) { $this->total_items -= $this->options['offset']; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php b/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php index 3f7c8bd..a6da828 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php @@ -1478,7 +1478,7 @@ function execute(ViewExecutable $view) { try { if ($view->pager->use_count_query() || !empty($view->get_total_rows)) { - $view->pager->execute_count_query($count_query); + $view->pager->executeCountQuery($count_query); } // Let the pager modify the query to add limits.