Implementation of Dependency Injection for EbtSettingsDefaultWidget class

Created on 25 June 2024, 9 days ago
Updated 26 June 2024, 8 days 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.69.0 2024