Problem/Motivation

To prepare for D12 and keep compatibility with 10.x it makes sense to convert hooks

Steps to reproduce

- https://gitlab.com/-/snippets/4769802
- https://www.md-systems.ch/en/blog/2025-10-19/converting-legacy-hooks

Proposed resolution

- convert hooks and use LegacyHook attribute for 10.x compatibility
- remove 9.x support from info-file

Remaining tasks

- convert
- review (tune CI if needed)
- commit

User interface changes

API changes

Data model changes

Issue fork masquerade-3587101

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

andypost created an issue. See original summary.

andypost’s picture

Status: Active » Needs review
Issue tags: +Drupal 12 compatibility
andypost’s picture

Title: Convert hooks » Convert hooks and add Drupal 12 compatibility

  • andypost committed 5a678145 on 8.x-2.x
    refactor: #3587101 Convert hooks to attribute-based OOP implementations...
andypost’s picture

Status: Needs review » Fixed

fixed

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.

ressa’s picture

Very nice, thank you!