Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PagerPluginBase.php

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 core/modules/views/src/Plugin/views/pager/None.php
Initialize the plugin.

File

core/modules/views/src/Plugin/views/pager/PagerPluginBase.php, line 74

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal