Details
-
Story
-
Resolution: Done
-
High
-
None
Description
As a Developer I want the API to use configured site access aware languages unless I tell it otherwise by means or specifying languages to load.
Scope
- v2: Introduce this as optional behavior (own services, used by content view and parameter injection out of the box, but for custom code you'll need to specifically ask for it)
- v3 Change this to become the default
Example
Example here is building upon what is planned in EZP-27428, go there to see how it looks like without neither of these stories.
Instead of this:
$content = $this->contentService->loadContent( 42, $this->configResolver->getParameter('languages') ); $name = $content->getVersionInfo()->getName();
I would prefer this:
$content = $this->contentService->loadContent(42);
$name = $content->getVersionInfo()->getName();
Attachments
Issue Links
- testing discovered
-
EZP-29376 New SiteAccess aware repo not handling languages on ContentView & when using sudo()
- Closed