eZ\Bundle\EzPublishCoreBundle\Routing\UrlAliasRouter::getUrlAlias PHP Method

getUrlAlias() protected method

Will return the right UrlAlias in regards to configured root location.
protected getUrlAlias ( string $pathinfo ) : eZ\Publish\API\Repository\Values\Content\URLAlias
$pathinfo string
return eZ\Publish\API\Repository\Values\Content\URLAlias
    protected function getUrlAlias($pathinfo)
    {
        $pathPrefix = $this->generator->getPathPrefixByRootLocationId($this->rootLocationId);
        if ($this->rootLocationId === null || $this->generator->isUriPrefixExcluded($pathinfo) || $pathPrefix === '/') {
            return parent::getUrlAlias($pathinfo);
        }
        return $this->urlAliasService->lookup($pathPrefix . $pathinfo);
    }