Implementation of Dependency Injection for EbtSettingsDefaultWidget class

Created on 25 June 2024, 6 months ago
Updated 26 June 2024, 6 months ago

Problem/Motivation

The EbtSettingsDefaultWidget that extends WidgetBase is working fine however the ide is pointing the \Drupal calls should be avoided in classes and asks to use DI instead

Proposed resolution

Just implement a constructor for class receiving this class as dependency. After that we can replace the \Drupal:: call to use $this-> replacing

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

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