Support for object oriented hook implementations using autowired services

Created on 23 October 2024, 2 months ago

As per the core change record:
Support for object oriented hook implementations using autowired services β†’

As of core Drupal 11.1, hooks can be written as instance methods on a class rather than procedural methods in a module file.

This solves a lot of problems. But since Rules relies entirely on hooks for Event generation, it is potentially a major source of problems. So I would like to be pro-active and start implementing the "new" hooks to see if they cause any problems in Rules for backwards compatibility or for our event model.

I will be starting with some simple non-critical hooks like hook_help() to ensure I get all the syntax and namespaces and testing configurations etc. correct, before moving on to the more critical entity hooks.

πŸ“Œ Task
Status

Active

Version

4.0

Component

Rules Core

Created by

πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024