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];
}