public function PagerPluginBase::getOffset

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::getOffset()
SqlBase::exposedFormAlter in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php, line 90
Definition of Drupal\views\Plugin\views\pager\PagerPluginBase.

Class

PagerPluginBase
The base plugin to handle pager.

Namespace

Drupal\views\Plugin\views\pager

Code

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