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.
Move the methods, leaving behind BC stubs to be removed in 11.x
Active
10.1 β¨