You are here

Views exposed form plugins in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php \Drupal\views\Plugin\views\exposed_form\views_exposed_form_plugins

Plugins that handle validation, submission, and rendering of exposed forms.

Exposed forms are used for filters, sorts, and pager settings that are exposed to site visitors. Exposed form plugins handle the rendering, validation, and submission of exposed forms, and may add additional form elements.

To define an Exposed Form Plugin in a module you need to:

File

core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php, line 8

Classes

Namesort descending Location Description
Basic core/modules/views/src/Plugin/views/exposed_form/Basic.php Exposed form plugin that provides a basic exposed form.
ExposedFormPluginBase core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php Base class for Views exposed filter form plugins.
InputRequired core/modules/views/src/Plugin/views/exposed_form/InputRequired.php Exposed form plugin that provides an exposed form with required input.
ViewsExposedForm core/modules/views/src/Annotation/ViewsExposedForm.php Defines a Plugin annotation object for views exposed form plugins.

Interfaces

Namesort descending Location Description
ExposedFormPluginInterface core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginInterface.php Interface for exposed filter form plugins.