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
Command icon 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

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes

  • rajab natshah committed 6d6e759b on 9.2.x
    task: #3608375 Remove the #[LegacyHook] shims for full OOP hooks (9.2.x)
    
rajab natshah’s picture

Issue summary: View changes
Status: Active » Fixed
Issue tags: +varbase-9.2.0, +varbase_heroslider_media-9.2.0

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-9.2.0

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.