feat: #3611182 Add the components_exposed_form views exposed form plugin and config schema for the component views plugins

This adds the missing components_exposed_form views exposed form plugin and the config schema for both component views plugins.

Closes #3611182: https://www.drupal.org/project/varbase_components/issues/3611182

What/Why

ComponentsViewsStyle (components_views_style, added in #3574244) renders a view's rows through a Single Directory Component, but its counterpart for the exposed filters did not exist. Any view configured to use components_exposed_form as its exposed form style threw a PluginNotFoundException and 500'd, and neither component views plugin had a config schema.

  • src/Plugin/views/exposed_form/ComponentsExposedForm.php — new #[ViewsExposedForm(id: 'components_exposed_form', ...)] plugin extending ExposedFormPluginBase. Renders the exposed filter form through the selected SDC's filters slot; falls back to the plain exposed form when no component is selected/resolvable yet.
  • config/schema/varbase_components.schema.yml — adds schema for views.exposed_form.components_exposed_form and views.style.components_views_style.

AI-Generated: Yes (Used Claude Code to add the ComponentsExposedForm views exposed form plugin and the config schema for both component views plugins.)

Checkpoints

  • File an issue about this project
  • Addition/Change/Update/Fix to this project
  • Testing to ensure no regression
  • Automated unit/functional testing coverage
  • Developer Documentation support on feature change/addition
  • User Guide Documentation support on feature change/addition
  • UX/UI designer responsibilities
  • Accessibility and Readability
  • Reviewed by a human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Update Release Notes
  • Release
Edited by Rajab Natshah

Merge request reports

Loading