Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27429

As a Developer I want the API to use configured languages unless I tell it otherwise

    XMLWordPrintable

    Details

      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

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              andre.romcke@ez.no André Rømcke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: