function PagerPluginBase::getItemsPerPage
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\PagerPluginBase::getItemsPerPage()
Get how many items per page this pager will display.
All but the leanest pagers should probably return a value here, so most pagers will not need to override this method.
File
-
core/
modules/ views/ src/ Plugin/ views/ pager/ PagerPluginBase.php, line 45
Class
- PagerPluginBase
- Base class for views pager plugins.
Namespace
Drupal\views\Plugin\views\pagerCode
public function getItemsPerPage() {
return $this->options['items_per_page'] ?? 0;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.