Exposed
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:
- Implement \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginInterface.
- Usually you will want to extend the \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginBase class.
- Exposed form plugins are annotated with \Drupal\views\Annotation\ViewsExposedForm annotation. See the Annotations topic for more information about annotations.
- They must be in namespace directory Plugin\views\exposed_form.