getURLAliasService() public method

Get URLAliasService.
public getURLAliasService ( ) : eZ\Publish\API\Repository\URLAliasService
return eZ\Publish\API\Repository\URLAliasService
 /**
  * Returns path corresponding to $rootLocationId.
  *
  * @param int $rootLocationId
  * @return string
  */
 public function getPathPrefixByRootLocationId($rootLocationId)
 {
     if (isset($this->pathPrefixMap[$rootLocationId])) {
         return $this->pathPrefixMap[$rootLocationId];
     }
     $this->pathPrefixMap[$rootLocationId] = $this->repository->getURLAliasService()->reverseLookup($this->loadLocation($rootLocationId))->path;
     return $this->pathPrefixMap[$rootLocationId];
 }
 /**
  * Returns path corresponding to $rootLocationId.
  *
  * @param int $rootLocationId
  * @param array $languages
  * @param string $siteaccess
  *
  * @return string
  */
 public function getPathPrefixByRootLocationId($rootLocationId, $languages = null, $siteaccess = null)
 {
     if (!$rootLocationId) {
         return '';
     }
     if (!isset($this->pathPrefixMap[$siteaccess])) {
         $this->pathPrefixMap[$siteaccess] = array();
     }
     if (!isset($this->pathPrefixMap[$siteaccess][$rootLocationId])) {
         $this->pathPrefixMap[$siteaccess][$rootLocationId] = $this->repository->getURLAliasService()->reverseLookup($this->loadLocation($rootLocationId), null, false, $languages)->path;
     }
     return $this->pathPrefixMap[$siteaccess][$rootLocationId];
 }