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

Created on 25 February 2023, over 1 year ago
Updated 27 May 2024, 29 days 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

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Baseย  โ†’

Last updated less than a minute 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.69.0 2024