function PagerPluginBase::getOffset
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\PagerPluginBase::getOffset()
- 10 core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\PagerPluginBase::getOffset()
- 11.x 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 64
Class
- PagerPluginBase
- Base class for views pager plugins.
Namespace
Drupal\views\Plugin\views\pagerCode
public function getOffset() {
return $this->options['offset'] ?? 0;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.