Views pager plugins

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\views_pager_plugins
  2. 8.9.x core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\views_pager_plugins
  3. 11.x core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\views_pager_plugins

Plugins to handle paging in views.

Pager plugins take care of everything regarding pagers, including figuring out the total number of items to render, setting up the query for paging, and setting up the pager.

Pager plugins extend \Drupal\views\Plugin\views\pager\PagerPluginBase. They must be attributed with \Drupal\views\Annotation\ViewsPager attribute, and they must be in namespace directory Plugin\views\pager.

See also

Plugin API

Parent topics

File

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

Classes

Title Sort descending File name Summary
Full core/modules/views/src/Plugin/views/pager/Full.php The plugin to handle full pager.
Mini core/modules/views/src/Plugin/views/pager/Mini.php The plugin to handle mini pager.
None core/modules/views/src/Plugin/views/pager/None.php Plugin for views without pagers.
PagerPluginBase core/modules/views/src/Plugin/views/pager/PagerPluginBase.php Base class for views pager plugins.
Some core/modules/views/src/Plugin/views/pager/Some.php Plugin for views without pagers.
ViewsPager core/modules/views/src/Attribute/ViewsPager.php Defines a views pager plugins type attribute for plugin discovery.
ViewsPager core/modules/views/src/Annotation/ViewsPager.php Defines a Plugin annotation object for views pager plugins.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.