public function PagerPluginBase::setItemsPerPage

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::setItemsPerPage()
None::init in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/None.php
Overrides \Drupal\views\Plugin\views\PluginBase::init().

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php, line 80
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 setItemsPerPage($items) {
  $this->options['items_per_page'] = $items;
}