You are here

function PagerPluginBase::get_offset in Views (for Drupal 7) 8.3

Get the page offset, or how many items to skip.

Even pagers that don't actually page can skip items at the beginning, so few pagers will need to override this method.

1 call to PagerPluginBase::get_offset()
Full::exposed_form_alter in lib/Drupal/views/Plugin/views/pager/Full.php

File

lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php, line 77
Definition of Drupal\views\Plugin\views\pager\PagerPluginBase.

Class

PagerPluginBase
The base plugin to handle pager.

Namespace

Drupal\views\Plugin\views\pager

Code

function get_offset() {
  return isset($this->options['offset']) ? $this->options['offset'] : 0;
}