Support object-oriented hooks in version 3.x

Created on 24 September 2025, 14 days ago

Problem/Motivation

Other modules which may need to interact with this module's hooks (e.g. via the #[RemoveHook] or #[ReorderHook] attributes) aren't able to since those attributes require a class/method to be specified. This can prevent those dependent modules from adopting OO-style hooks themselves.

The 4.x version of the module already uses OO-style hooks, but the 3.x version will be supported for some time yet and the 4.x version is not yet stable. Therefore, it would be convenient if the 3.x module adopted OO-style hooks to enable other modules to do the same when they depend on the Group module.

Proposed resolution

Adopt OO style hooks and use LegacyHook et al. to maintain BC.

API changes

None, this should be backward-compatible.

Feature request
Status

Active

Version

3.3

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024