Problem/Motivation
The Varbase Media Hero Slider hooks already live in the OOP Drupal\varbase_heroslider_media\Hook\VarbaseHerosliderMediaHooks class, but varbase_heroslider_media.module still keeps #[LegacyHook] backward-compat shims that delegate to that class. For Drupal ~11.4.0 these standard hooks are invoked by core only, so the shims are redundant.
Steps to reproduce
Review varbase_heroslider_media.module: every function is a #[LegacyHook] shim delegating to Drupal\varbase_heroslider_media\Hook\VarbaseHerosliderMediaHooks.
Proposed resolution
Remove the #[LegacyHook] shims and delete varbase_heroslider_media.module; all hook logic already lives in the OOP #[Hook] class (change record).
Remaining tasks
- ✅ 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 varbase-9.2.0, varbase_heroslider_media-9.2.0
User interface changes
- N/A
API changes
- The
#[LegacyHook]procedural shim functions are removed; the logic remains available on the OOP hook class service. Standard hooks invoked by core only.
Data model changes
- N/A
Release notes snippet
task: #3608375 Remove the #[LegacyHook] shims for full OOP hooks
Issue fork varbase_heroslider_media-3608375
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rajab natshahComment #5
rajab natshah✅ Released varbase_heroslider_media-9.2.0
Comment #7
rajab natshah✅ Released varbase-9.2.0