Skip to content

Commit

Permalink
Merge branch '7.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Longosz committed Sep 17, 2018
2 parents 186e0bb + 1e5308d commit 2a0a30d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Persistence/Content/Location/Handler.php
Expand Up @@ -193,4 +193,21 @@ public function setSectionForSubtree($locationId, $sectionId);
* @param mixed $locationId
*/
public function changeMainLocation($contentId, $locationId);

/**
* Get the total number of all existing Locations. Can be combined with loadAllLocations.
*
* @return int
*/
public function countAllLocations();

/**
* Bulk-load all existing Locations, constrained by $limit and $offset to paginate results.
*
* @param int $offset
* @param int $limit
*
* @return \eZ\Publish\SPI\Persistence\Content\Location[]
*/
public function loadAllLocations($offset, $limit);
}
7 changes: 7 additions & 0 deletions Persistence/Content/UrlAlias/Handler.php
Expand Up @@ -177,4 +177,11 @@ public function translationRemoved(array $locationIds, $languageCode);
* @param array $languageCodes Language codes of currently published Content Object Translations
*/
public function archiveUrlAliasesForDeletedTranslations($locationId, $parentLocationId, array $languageCodes);

/**
* Delete corrupted URL aliases (global, custom and system).
*
* @return int Number of deleted URL aliases
*/
public function deleteCorruptedUrlAliases();
}

0 comments on commit 2a0a30d

Please sign in to comment.