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..68c03c8 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 @@ -253,7 +253,7 @@ function items_per_page_exposed() { return FALSE; } - function offset_exposed() { + public function isOffsetExposed() { 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..06f4993 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 @@ -220,7 +220,7 @@ public function query() { $this->options['items_per_page'] = 0; } } - if ($this->offset_exposed()) { + if ($this->isOffsetExposed()) { $query = drupal_container()->get('request')->query; $offset = $query->get('offset'); if (isset($offset) && $offset >= 0) { @@ -324,14 +324,14 @@ function update_page_info() { } function uses_exposed() { - return $this->items_per_page_exposed() || $this->offset_exposed(); + return $this->items_per_page_exposed() || $this->isOffsetExposed(); } function items_per_page_exposed() { return !empty($this->options['expose']['items_per_page']); } - function offset_exposed() { + public function isOffsetExposed() { return !empty($this->options['expose']['offset']); } @@ -355,7 +355,7 @@ function exposed_form_alter(&$form, &$form_state) { } } - if ($this->offset_exposed()) { + if ($this->isOffsetExposed()) { $form['offset'] = array( '#type' => 'textfield', '#size' => 10,