pass Drupal services using Dependency Injection (DI)

Created on 21 September 2023, about 1 year ago

Problem/Motivation

In src/Plugin/Block/FormToBlock.php file, we should use Dependency Injection (DI) to use Drupal services.

Steps to reproduce

  1. Visit src/Plugin/Block/FormToBlock.php file.
  2. router.route_provider and form_builder services are used with \Drupal.

Proposed resolution

Use Drupal services using Dependency Injection (DI).

📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India samit.310@gmail.com

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

Comments & Activities

Production build 0.71.5 2024