Views display extender plugins in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/display_extender/DisplayExtenderPluginBase.php \Drupal\views\Plugin\views\display_extender\views_display_extender_plugins
- 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
Parent topics
File
- core/
modules/ views/ src/ Plugin/ views/ display_extender/ DisplayExtenderPluginBase.php, line 8
Classes
Name | Location | Description |
---|---|---|
DefaultDisplayExtender |
core/ |
Default display extender plugin; does nothing. |
DisplayExtenderPluginBase |
core/ |
Base class for Views display extender plugins. |
ViewsDisplayExtender |
core/ |
Defines a Plugin annotation object for views display extender plugins. |