function PagerPluginBase::get_items_per_page

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.

4 calls to PagerPluginBase::get_items_per_page()
Full::exposed_form_alter in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/Full.php
Full::get_pager_total in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/Full.php
Full::update_page_info in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/Full.php
Update global paging info.
PagerPluginBase::has_more_records in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php
Determine if there are more records available.
1 method overrides PagerPluginBase::get_items_per_page()
None::get_items_per_page 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 58
Definition of Drupal\views\Plugin\views\pager\PagerPluginBase.

Class

PagerPluginBase
The base plugin to handle pager.

Namespace

Drupal\views\Plugin\views\pager

Code

function get_items_per_page() {
  return isset($this->options['items_per_page']) ? $this->options['items_per_page'] : 0;
}