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

Converts the procedural hook implementations in the Varbase Workflow module and its Varbase Content Planner submodule to Drupal 11 object-oriented hook classes (#[Hook] attribute, change record) on the 2.2.x branch. The config factory is injected into the workflow hook class; the _varbase_workflow_node_type_add_form submit callback and the preprocess_varbase_item_list preprocess hook stay procedural.

Related issue: #3608325

What changed

  • varbase_workflow.module: hook_form_alter\Drupal\varbase_workflow\Hook\VarbaseWorkflowHooks (config.factory injected).
  • varbase_content_planner.module: hook_theme, hook_theme_suggestions_item_list_alter\Drupal\varbase_content_planner\Hook\VarbaseContentPlannerHooks.

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