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()
Mini::postExecute in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php
Overrides \Drupal\views\Plugin\views\pager\PagerPluginBase::postExecute().
PagerPluginBase::hasMoreRecords in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php
Determine if there are more records available.
SqlBase::exposedFormAlter in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php
SqlBase::getPagerTotal in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php
SqlBase::updatePageInfo in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php
Update global paging info.
1 method overrides PagerPluginBase::getItemsPerPage()
None::getItemsPerPage in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/None.php
Get how many items per page this pager will display.

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;
}