task: #3608369 Convert the procedural hooks to OOP hook classes in the Varbase Core module

Converts all procedural hook implementations in the Varbase Core module (varbase_core.module + varbase_core.tokens.inc) to a Drupal 11 object-oriented hook class using the #[Hook] attribute (change record), with the config factory, class resolver, request stack and theme manager injected via the constructor. Both procedural files are removed.

Related issue: #3608369

What changed

hook_form_node_form_alter, hook_form_alter, hook_template_preprocess_default_variables_alter, hook_modules_installed, hook_email_registration_name_alter, hook_token_info, hook_tokens\Drupal\varbase_core\Hook\VarbaseCoreHooks. Removed varbase_core.module and varbase_core.tokens.inc.


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

Merge request reports

Loading