\Drupal calls should be avoided in classes

Created on 24 March 2025, 12 days ago

Problem/Motivation

CacheTagsSimplifySubscriber calls the \Drupal::config() method, this is not recommended in object oriented code.

Steps to reproduce

https://git.drupalcode.org/project/cache_tags_simplify/-/jobs/4763018

Proposed resolution

CacheTagsSimplifySubscriber should use dependency injection to inject the config factory service.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.1

Component

Code

Created by

🇫🇷France prudloff Lille

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

Comments & Activities

Production build 0.71.5 2024