function PagerPluginBase::set_items_per_page

Set how many items per page this pager will display.

This is mostly used for things that will override the value.

1 call to PagerPluginBase::set_items_per_page()
None::init in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/None.php
Initialize the plugin.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php, line 67
Definition of Drupal\views\Plugin\views\pager\PagerPluginBase.

Class

PagerPluginBase
The base plugin to handle pager.

Namespace

Drupal\views\Plugin\views\pager

Code

function set_items_per_page($items) {
  $this->options['items_per_page'] = $items;
}