diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php index d527836..f542860 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php @@ -282,7 +282,7 @@ public function isPagerEnabled() { if ($this->usesPager()) { $pager = $this->getPlugin('pager'); if ($pager) { - return $pager->use_pager(); + return $pager->usePager(); } } return FALSE; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/Counter.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/Counter.php index b362bb3..e0d932c 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/Counter.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/Counter.php @@ -49,7 +49,7 @@ public function get_value($values, $field = NULL) { $count = is_numeric($this->options['counter_start']) ? $this->options['counter_start'] - 1 : 0; $pager = $this->view->pager; // Get the base count of the pager. - if ($pager->use_pager()) { + if ($pager->usePager()) { $count += ($pager->get_items_per_page() * $pager->get_current_page() + $pager->set_offset()); } // Add the counter for the current site. 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..b3072bc 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 @@ -63,7 +63,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function use_pager() { + function usePager() { 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..4209b95 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 @@ -160,7 +160,7 @@ public function summaryTitle() { * * Only a couple of very specific pagers will set this to false. */ - function use_pager() { + function usePager() { 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..f2a4be5 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 @@ -60,7 +60,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function use_pager() { + function usePager() { return FALSE; } 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..2114de9 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php @@ -140,7 +140,7 @@ public function testNoLimit() { $this->assertEqual(count($view->result), 8, 'Make sure that every item beside the first three is returned in the result'); // Check some public functions. - $this->assertFalse($view->pager->use_pager()); + $this->assertFalse($view->pager->usePager()); $this->assertFalse($view->pager->use_count_query()); $this->assertEqual($view->pager->get_items_per_page(), 0); } @@ -186,7 +186,7 @@ public function testLimit() { $this->assertEqual(count($view->result), 3, 'Make sure that only a certain count of items is returned'); // Check some public functions. - $this->assertFalse($view->pager->use_pager()); + $this->assertFalse($view->pager->usePager()); $this->assertFalse($view->pager->use_count_query()); } diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php index a8a8dd2..c1af583 100644 --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -543,7 +543,7 @@ public function setOffset($offset) { */ public function usePager() { if (!empty($this->pager)) { - return $this->pager->use_pager(); + return $this->pager->usePager(); } } @@ -752,7 +752,7 @@ public function initPager() { if (!isset($this->pager)) { $this->pager = $this->display_handler->getPlugin('pager'); - if ($this->pager->use_pager()) { + if ($this->pager->usePager()) { $this->pager->set_current_page($this->current_page); } @@ -772,7 +772,7 @@ public function initPager() { * Render the pager, if necessary. */ public function renderPager($exposed_input) { - if (!empty($this->pager) && $this->pager->use_pager()) { + if (!empty($this->pager) && $this->pager->usePager()) { return $this->pager->render($exposed_input); } @@ -1202,7 +1202,7 @@ public function execute($display_id = NULL) { $cache = $this->display_handler->getPlugin('cache'); } if ($cache->cache_get('results')) { - if ($this->pager->use_pager()) { + if ($this->pager->usePager()) { $this->pager->total_items = $this->total_rows; $this->pager->update_page_info(); }