task: #3608347 Convert the procedural hooks to OOP hook classes in the Varbase profile

Converts the runtime hook_toolbar_alter() implementation in the Varbase profile to a Drupal 11 object-oriented hook class (#[Hook] attribute, change record), with the current user injected via the constructor. Install-phase hooks (hook_install_tasks, hook_install_tasks_alter, hook_form_install_configure_form_alter), hook_requirements() and the install task callback helpers stay procedural.

Related issue: #3608347

What changed

hook_toolbar_alter\Drupal\varbase\Hook\VarbaseHooks.


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