[pp-1] Add Dependency injection to Hook classes

Created on 20 January 2025, 1 day ago

Problem/Motivation

Postponed on πŸ“Œ Convert to OOP Hooks Active

Once that is in we can address dependency injection for Hook classes.
This will likely need to be a meta issue since there are a bunch of classes.

Steps to reproduce

Remove these exclusions:

    <exclude name="DrupalPractice.Objects.GlobalDrupal.GlobalDrupal"/>
    <exclude name="DrupalPractice.Objects.GlobalClass.GlobalClass"/>

Run code sniffing

Proposed resolution

Add dependency injection for all of the hook classes that have \Drupal::service calls.

Remaining tasks

Assess what needs updating.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ“Œ Task
Status

Postponed

Version

6.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States nicxvan

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

Comments & Activities

Production build 0.71.5 2024