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..2dd52c9 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 @@ -249,7 +249,7 @@ function uses_exposed() { return FALSE; } - function items_per_page_exposed() { + protected function itemsPerPageExposed() { return FALSE; } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php index f7eb34b..62e3358 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php @@ -210,7 +210,7 @@ public function validateOptionsForm(&$form, &$form_state) { } public function query() { - if ($this->items_per_page_exposed()) { + if ($this->itemsPerPageExposed()) { $query = drupal_container()->get('request')->query; $items_per_page = $query->get('items_per_page'); if ($items_per_page > 0) { @@ -324,10 +324,10 @@ function update_page_info() { } function uses_exposed() { - return $this->items_per_page_exposed() || $this->offset_exposed(); + return $this->itemsPerPageExposed() || $this->offset_exposed(); } - function items_per_page_exposed() { + protected function itemsPerPageExposed() { return !empty($this->options['expose']['items_per_page']); } @@ -336,7 +336,7 @@ function offset_exposed() { } function exposed_form_alter(&$form, &$form_state) { - if ($this->items_per_page_exposed()) { + if ($this->itemsPerPageExposed()) { $options = explode(',', $this->options['expose']['items_per_page_options']); $sanitized_options = array(); if (is_array($options)) {