move static collect*() methods from display entity classes to EntityDisplayRepository

Created on 13 June 2023, about 1 year ago

Problem/Motivation

EntityFormDisplay::collectRenderDisplay() is a static method on an entity class for loading an entity given certain conditions. There are other similar functions EntityViewDisplay::collectRenderDisplay() and EntityViewDisplay::collectRenderDisplays().

Loading methods are more typically placed on storage handlers (e.g. loadByProperties()).

But in the case of entity displays, there is a dedicated service for 'finding and loading entity displays' - EntityDisplayRepository.

These methods should be moved there.

Steps to reproduce

Proposed resolution

Move the methods, leaving behind BC stubs to be removed in 11.x

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

10.1 ✨

Component
EntityΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Comments & Activities

Production build 0.69.0 2024