task: #3608325 Convert the procedural hooks to OOP hook classes in the Varbase Content Planner module

Converts the procedural hook implementations in the Varbase Content Planner submodule to Drupal 11 object-oriented hook classes using the #[Hook] attribute (change record), with the required services provided through constructor dependency injection. The .module file is reduced to non-hook code only.

Related issue: #3608325

What changed

hook_theme, hook_theme_suggestions_item_list_alter, hook_toolbar_alter\Drupal\varbase_content_planner\Hook\VarbaseContentPlannerHooks. preprocess_varbase_item_list kept 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

Merge request reports

Loading