\Drupal calls should be avoided in classes, use dependency injection instead

Created on 11 July 2023, almost 2 years ago

Problem/Motivation

The global service call to the twig object in Infogram.php must be avoided.

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

Inject the twig service via DI.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India sidharth_soman Bangalore

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

Comments & Activities

Production build 0.71.5 2024