Details
-
Story
-
Resolution: Unresolved
-
High
-
None
-
None
-
None
Description
As a Developer I'd like to get easily access to content item when I have a location.
For instance if I search for locations I'd like to be able to reach the content of that location within Twig templates without further work.
This story contains the following sub tasks:
- Add a SPI\Persistence\Content\Handler->loadContentList() method in order to be able to bulk load content, so the lazy property can be loaded in bulk on collection of locations.
- Take advantage of this in SearchService->findContent() for improving performance when loading content
- Use this in order to be able to expose $location->getContent() property in API, which for Twig will simply mean location.content
Attachments
Issue Links
- relates to
-
EZP-27924 As a Developer I want lazy loading of content type groups
- Closed