You are here

Views pager plugins in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\views_pager_plugins
  2. 10 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 annotated with \Drupal\views\Annotation\ViewsPager annotation, 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

Namesort descending Location Description
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/Annotation/ViewsPager.php Defines a Plugin annotation object for views pager plugins.