Skip to content

Commit

Permalink
Merge branch '7.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Dec 11, 2018
2 parents 59a0ea5 + e2d29f0 commit 6312cd8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Persistence/Content/Location/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ interface Handler
* Loads the data for the location identified by $locationId.
*
* @param int $locationId
* @param string[]|null $translations If set, NotFound is thrown if content is not in given translation.
* @param bool $useAlwaysAvailable Respect always available flag on content, where main language is valid translation fallback.
*
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
*
* @return \eZ\Publish\SPI\Persistence\Content\Location
*/
public function load($locationId);
public function load($locationId, array $translations = null, bool $useAlwaysAvailable = true);

/**
* Loads the subtree ids of the location identified by $locationId.
Expand All @@ -41,12 +43,14 @@ public function loadSubtreeIds($locationId);
* Loads the data for the location identified by $remoteId.
*
* @param string $remoteId
* @param string[]|null $translations If set, NotFound is thrown if content is not in given translation.
* @param bool $useAlwaysAvailable Respect always available flag on content, where main language is valid translation fallback.
*
* @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
*
* @return \eZ\Publish\SPI\Persistence\Content\Location
*/
public function loadByRemoteId($remoteId);
public function loadByRemoteId($remoteId, array $translations = null, bool $useAlwaysAvailable = true);

/**
* Loads all locations for $contentId, optionally limited to a sub tree
Expand Down

0 comments on commit 6312cd8

Please sign in to comment.