Avoided to use drupal service instead of dependency injection

Created on 13 May 2023, over 1 year ago
Updated 15 May 2023, over 1 year ago

Remove the $user_storage = \Drupal::entityTypeManager()->getStorage('user');

Use the dependency injection: $user_storage = $this->entityTypeManager->getStorage('user');

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Shanu Chouhan

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024