Convert procedural hooks to object oriented hooks

Created on 14 July 2025, about 15 hours ago

Problem/Motivation

Drupal now supports object oriented hooks. These offer several advantages, particularly support for dependency injection, and they can be slightly more performant.

As we are only supporting Drupal 11, there is no need to implement backwards compatibility with LegacyHook.

Steps to reproduce

Proposed resolution

Move hooks into new classes.

Remaining tasks

  • Add new hook classes.
  • Convert hooks from crm.module.
  • Replace \Drupal calls with object oriented hooks.

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇪Ireland lostcarpark

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