task: #3608316 Convert the procedural hooks to OOP hook classes in the Varbase Search module
Converts the procedural hook implementation(s) in the Varbase Search to a Drupal 11 object-oriented hook class (#[Hook] attribute, change record) on the 9.2.x branch, with dependency injection where services are used. The .module file keeps only non-hook code.
Related issue: #3608316
What changed
hook_form_entity_view_display_edit_form_alter → \Drupal\varbase_search\Hook\VarbaseSearchHooks. The _varbase_search_form_entity_view_display_edit_form_submit callback stays procedural.
This changeset was produced with AI assistance (Claude Code). Per the Drupal AI-generated contribution policy, it has been reviewed by a human before submission.
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