Use Dependency injection

Created on 16 August 2024, 4 months ago
Updated 2 September 2024, 4 months ago

Hi

Use Dependency injection in Controller file.

$database = \Drupal::database();

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India radheymkumar Jaipur, Rajasthan, India

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

Comments & Activities

Production build 0.71.5 2024