diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php index 3e19f26..3ad7a25 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php @@ -67,9 +67,9 @@ public function query() { } /** - * Overrides \Drupal\views\Plugin\views\pager\PagerPluginBase::use_count_query(). + * Overrides \Drupal\views\Plugin\views\pager\PagerPluginBase::useCountQuery(). */ - public function use_count_query() { + public function useCountQuery() { return FALSE; } 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..f1b3e3d 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 @@ -67,7 +67,7 @@ function use_pager() { return FALSE; } - function use_count_query() { + function useCountQuery() { return FALSE; } 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..302fb3e 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 @@ -169,7 +169,7 @@ function use_pager() { * * If a pager needs a count query, a simple query */ - function use_count_query() { + function useCountQuery() { return TRUE; } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Some.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Some.php index 835ac7d..2e8c62c 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Some.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Some.php @@ -64,7 +64,7 @@ function use_pager() { return FALSE; } - function use_count_query() { + function useCountQuery() { return FALSE; } 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..cd46ec6 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 @@ -1477,7 +1477,7 @@ function execute(ViewExecutable $view) { $start = microtime(TRUE); try { - if ($view->pager->use_count_query() || !empty($view->get_total_rows)) { + if ($view->pager->useCountQuery() || !empty($view->get_total_rows)) { $view->pager->execute_count_query($count_query); } @@ -1499,7 +1499,7 @@ function execute(ViewExecutable $view) { } $view->pager->postExecute($view->result); - if ($view->pager->use_count_query() || !empty($view->get_total_rows)) { + if ($view->pager->useCountQuery() || !empty($view->get_total_rows)) { $view->total_rows = $view->pager->get_total_items(); } diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php index 13d30ef..39e6c52 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php @@ -141,7 +141,7 @@ public function testNoLimit() { // Check some public functions. $this->assertFalse($view->pager->use_pager()); - $this->assertFalse($view->pager->use_count_query()); + $this->assertFalse($view->pager->useCountQuery()); $this->assertEqual($view->pager->get_items_per_page(), 0); } @@ -187,7 +187,7 @@ public function testLimit() { // Check some public functions. $this->assertFalse($view->pager->use_pager()); - $this->assertFalse($view->pager->use_count_query()); + $this->assertFalse($view->pager->useCountQuery()); } /**