refactor: #3606797 Convert the theme hooks to Drupal 11 OOP
Closes #3606797.
Convert the 8 .theme hooks to Drupal 11 OOP (src/Hook/VarthemeBs4Hooks.php with #[Hook] + constructor DI; .theme functions become #[LegacyHook] shims). Follow-up to the merged !10 (merged) (the refactor commit did not land in that merge).
AI-Generated: Yes (Used Claude Code).
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
- Accessibility and Readability
- Code review by maintainers
- Full testing and approval
- Credit contributors
- Review with the product owner
- Update Release Notes
- Release
Edited by Rajab Natshah