Implements Dependency Injection instead of Drupal::service at EptSettingsDefaultWidget

Created on 22 June 2024, 5 months ago

Problem/Motivation

Currently on EptSettingsDefaultWidget is used Drupal::service to verify if field_group is enabled and with that attach a library of horizontal tabs or not. It works but is a good approach to use dependency injection instead since it makes the code more testable and making the code more modular and easier to maintain

Proposed resolution

Inject the dependency on constructor, implement a create and use the object with $this->

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