Set how many items per page this pager will display.
This is mostly used for things that will override the value.
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;
}