Inject entity.repository service instead of using \Drupal::service('entity.repository') in non-tests

Created on 25 February 2023, over 1 year ago

Problem/Motivation

Follow up #2729597: [meta] Replace \Drupal with injected services where appropriate in core โ†’ and see it for more details. And take this fixed issue โ†’ and its commit โ†’ as an example.

Steps to reproduce

Proposed resolution

Inject entity.repository service instead of using \Drupal::service('entity.repository') in non-tests where possible.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component
Baseย  โ†’

Last updated about 9 hours ago

Created by

๐Ÿ‡จ๐Ÿ‡ณChina jungle Chongqing, China

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024