pass config.factory Drupal services using Dependency Injection (DI)

Created on 27 September 2023, about 1 year ago

Problem/Motivation

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

Steps to reproduce

  • Visit src/Plugin/Block/TwitterFeedBlock.php file.
  • \Drupal::config('twitter_feed.settings') is directly use with DI.

Proposed resolution

Use Drupal services using Dependency Injection (DI).

📌 Task
Status

Needs review

Version

2.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