Consider using object oriented hooks

Created on 6 April 2025, 2 months ago

Problem/Motivation

Since this module already aims to support modern Drupal (it requires Drupal 11.2) we should be free to use Object Oriented hooks which has a minimum requirement of 11.1.

Benefits:
1. We could use dependency injection to load services instead of the Drupal::service global.
2. Future proof

The change record for OO hooks is: https://www.drupal.org/node/3442349 β†’

Proposed resolution

Modify .module file to use OO Hooks.

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cosmicdreams Minneapolis/St. Paul

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