\Drupal calls should be avoided in classes

Created on 28 June 2023, over 1 year ago
Updated 10 July 2023, over 1 year ago

Problem/Motivation

\Drupal calls should be avoided in classes.

FILE: D:\xampp\htdocs\know-how\modules\custom\activities\src\ActivitiesLogger.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------
65 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
67 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------------

Proposed resolution

We can use dependency injection instead of direct /Drupal calls.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Prachi6824

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

Comments & Activities

Production build 0.71.5 2024