You are here

public function PagerPluginBase::setItemsPerPage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\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 core/modules/views/src/Plugin/views/pager/None.php
Initialize the plugin.

File

core/modules/views/src/Plugin/views/pager/PagerPluginBase.php, line 59
Contains \Drupal\views\Plugin\views\pager\PagerPluginBase.

Class

PagerPluginBase
Base class for views pager plugins.

Namespace

Drupal\views\Plugin\views\pager

Code

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