Content/PageTreeRouteContentType.php
private function generateSuffix(NodeInterface $node, $locale, $pagePath)
    {
        $document = $this->documentRegistry->getDocumentForNode($node, $locale);
        $route = $this->chainRouteGenerator->generate($document);
        $route->setPath(rtrim($pagePath, '/') . '/' . ltrim($route->getPath(), '/'));

        $route = $this->conflictResolver->resolve($route);

        return substr($route->getPath(), strlen(rtrim($pagePath, '/')) + 1);
    }
private function generateSuffix(NodeInterface $node, $locale, $pagePath)
    {
        $document = $this->documentRegistry->getDocumentForNode($node, $locale);
        $route = $this->chainRouteGenerator->generate($document);
        $route->setPath(rtrim($pagePath, '/') . '/' . ltrim($route->getPath(), '/'));

        $route = $this->conflictResolver->resolve($route);

        return substr($route->getPath(), strlen(rtrim($pagePath, '/')) + 1);
    }
private function generateSuffix ( NodeInterface $ node , $ locale , $ pagePath ) { $ document = $ this -> documentRegistry -> getDocumentForNode ( $ node , $ locale ) ; $ route = $ this -> chainRouteGenerator -> generate ( $ document ) ; $ route -> setPath ( rtrim ( $ pagePath , '/' ) . '/' . ltrim ( $ route -> getPath ( ) , '/' ) ) ; $ route = $ this -> conflictResolver -> resolve ( $ route ) ; return substr ( $ route -> getPath ( ) , strlen ( rtrim ( $ pagePath , '/' ) ) + 1 ) ; }
Generate a new suffix for document.

@param NodeInterface $node
@param string $locale
@param string $pagePath

@return string
Generate a new suffix for document .