You are here

Views display extender plugins in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php \Drupal\views\Plugin\views\display_extender\views_display_extender_plugins
  2. 9 core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php \Drupal\views\Plugin\views\display_extender\views_display_extender_plugins

Plugins that offer additional display options across display types.

Display extender plugins allow additional options or configuration to be added to views across all display types. For example, if you wanted to allow site users to add certain metadata to the rendered output of every view display regardless of display type, you could provide this option as a display extender.

Display extender plugins extend \Drupal\views\Plugin\views\display_extender\DisplayExtenderPluginBase. They must be annotated with \Drupal\views\Annotation\ViewsDisplayExtender annotation, and they must be in namespace directory Plugin\views\display_extender.

See also

Plugin API

Views display plugins

Parent topics

File

core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php, line 8

Classes

Namesort descending Location Description
DefaultDisplayExtender core/modules/views/src/Plugin/views/display_extender/DefaultDisplayExtender.php Default display extender plugin; does nothing.
DisplayExtenderPluginBase core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php Base class for Views display extender plugins.
ViewsDisplayExtender core/modules/views/src/Annotation/ViewsDisplayExtender.php Defines a Plugin annotation object for views display extender plugins.