You are here

public function PagerPluginBase::getOffset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\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 core/modules/views/src/Plugin/views/pager/SqlBase.php

File

core/modules/views/src/Plugin/views/pager/PagerPluginBase.php, line 69
Contains \Drupal\views\Plugin\views\pager\PagerPluginBase.

Class

PagerPluginBase
Base class for views pager plugins.

Namespace

Drupal\views\Plugin\views\pager

Code

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