Commit 802b6c0c authored by alexpott's avatar alexpott
Browse files

Issue #2002950 by a_L_p, tvlooy, nathangervais: Rename Views method...

Issue #2002950 by a_L_p, tvlooy, nathangervais: Rename Views method use_count_query() to useCountQuery().
parent f6ea9cd2
...@@ -67,9 +67,9 @@ public function query() { ...@@ -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; return FALSE;
} }
......
...@@ -67,7 +67,7 @@ public function usePager() { ...@@ -67,7 +67,7 @@ public function usePager() {
return FALSE; return FALSE;
} }
function use_count_query() { public function useCountQuery() {
return FALSE; return FALSE;
} }
......
...@@ -169,7 +169,7 @@ public function usePager() { ...@@ -169,7 +169,7 @@ public function usePager() {
* *
* If a pager needs a count query, a simple query * If a pager needs a count query, a simple query
*/ */
function use_count_query() { public function useCountQuery() {
return TRUE; return TRUE;
} }
......
...@@ -64,7 +64,7 @@ public function usePager() { ...@@ -64,7 +64,7 @@ public function usePager() {
return FALSE; return FALSE;
} }
function use_count_query() { public function useCountQuery() {
return FALSE; return FALSE;
} }
......
...@@ -1435,7 +1435,7 @@ function execute(ViewExecutable $view) { ...@@ -1435,7 +1435,7 @@ function execute(ViewExecutable $view) {
$start = microtime(TRUE); $start = microtime(TRUE);
try { try {
if ($view->pager->use_count_query() || !empty($view->get_total_rows)) { if ($view->pager->useCountQuery() || !empty($view->get_total_rows)) {
$view->pager->executeCountQuery($count_query); $view->pager->executeCountQuery($count_query);
} }
...@@ -1457,7 +1457,7 @@ function execute(ViewExecutable $view) { ...@@ -1457,7 +1457,7 @@ function execute(ViewExecutable $view) {
} }
$view->pager->postExecute($view->result); $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->getTotalItems(); $view->total_rows = $view->pager->getTotalItems();
} }
......
...@@ -141,7 +141,7 @@ public function testNoLimit() { ...@@ -141,7 +141,7 @@ public function testNoLimit() {
// Check some public functions. // Check some public functions.
$this->assertFalse($view->pager->usePager()); $this->assertFalse($view->pager->usePager());
$this->assertFalse($view->pager->use_count_query()); $this->assertFalse($view->pager->useCountQuery());
$this->assertEqual($view->pager->get_items_per_page(), 0); $this->assertEqual($view->pager->get_items_per_page(), 0);
} }
...@@ -187,7 +187,7 @@ public function testLimit() { ...@@ -187,7 +187,7 @@ public function testLimit() {
// Check some public functions. // Check some public functions.
$this->assertFalse($view->pager->usePager()); $this->assertFalse($view->pager->usePager());
$this->assertFalse($view->pager->use_count_query()); $this->assertFalse($view->pager->useCountQuery());
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment