Convert hooks to OOP hooks with attributes

Created on 25 February 2025, about 2 months ago

Problem/Motivation

Core now has support for OOP hooks. As they are automatically converted into autowired services, it means we can empty out the module file and use proper dependency injection rather than \Drupal::service() calls.

Steps to reproduce

N/A

Proposed resolution

Implement OOP hooks

Remaining tasks

Implement OOP hooks

User interface changes

N/A

API changes

N/A. Procedural hooks will be gone, but hook implementations are not considered API

Data model changes

N/A

📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium

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