task: #3608329 Convert the procedural hooks to OOP hook classes in the Varbase Styleguide module

Converts the hook_page_attachments() and hook_help() implementations in the Varbase Styleguide module to a Drupal 11 object-oriented hook class (#[Hook] attribute, change record), with the route match, module handler, filter plugin manager and config factory injected via the constructor. The large hook_styleguide_alter() implementation and its render helpers are kept procedural to keep the change focused and low-risk.

Related issue: #3608329

What changed

hook_page_attachments, hook_help\Drupal\varbase_styleguide\Hook\VarbaseStyleguideHooks.


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