Avoid static \Drupal calls inside class methods and use proper DI

Created on 19 September 2023, 10 months ago
Updated 8 July 2024, 19 days ago

Problem/Motivation

Right now in many parts of the codebase, services are called via static \Drupal. While this is fine in *.module, *.install and in static functions and callbacks, in classes it shouldn't be used. Need to refactor it with proper dependeny injection.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇸🇰Slovakia kaszarobert

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024