Quantcast
Viewing all articles
Browse latest Browse all 295845

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

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


Viewing all articles
Browse latest Browse all 295845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>