Closed (fixed)
Project:
Varbase SEO
Version:
9.2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2026 at 00:23 UTC
Updated:
22 Jul 2026 at 16:05 UTC
Jump to comment: Most recent
Drupal 11 introduced object-oriented hook implementations via the #[Hook] attribute (change record). Converting the module's procedural hooks to an OOP hook class improves structure, discoverability and testability, and aligns Varbase SEO with Drupal core.
Move the convertible procedural hooks from varbase_seo.module into src/Hook/VarbaseSeoHooks.php with #[Hook('...')] attributes (form_node_form_alter, form_metatag_defaults_edit_form_alter, modules_installed, pathauto_punctuation_chars_alter). Install/update/schema hooks stay procedural.
task: #3608315 Remove the #[LegacyHook] shims for full OOP hooksStart 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 #4
rajab natshahComment #8
rajab natshah✅ Released varbase_seo-9.2.0
Comment #10
rajab natshah✅ Released varbase-9.2.0
Comment #11
rajab natshahComment #12
rajab natshah✅ Released varbase_seo-10.1.1