Views display extender plugins

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php \Drupal\views\Plugin\views\display_extender\views_display_extender_plugins
  2. 8.9.x core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php \Drupal\views\Plugin\views\display_extender\views_display_extender_plugins
  3. 10 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 have \Drupal\views\Attribute\ViewsDisplayExtender attributes, 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

Title Sort descending File name Summary
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/Attribute/ViewsDisplayExtender.php Defines a Plugin attribute object for views display extender plugins.
ViewsDisplayExtender core/modules/views/src/Annotation/ViewsDisplayExtender.php Defines a Plugin annotation object for views display extender plugins.

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