public function 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.

5 calls to PagerPluginBase::getItemsPerPage()
1 method overrides PagerPluginBase::getItemsPerPage()

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php, line 71
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 getItemsPerPage() {
  return isset($this->options['items_per_page']) ? $this->options['items_per_page'] : 0;
}