protected function buildUrlFromPath(array $path)
    {
        // Remove root level (homepage)
        array_shift($path);

        // Homepage
        if (count($path) === 0 && $this->treeStrategy->isHomeTreeRoot()) {
            return '/';
        }

        // Build uri from tree path
        return array_reduce($path, function ($carry, NestedSetRoutingPageInterface $item) {
            $carry .= '/' . $item->getSlug();
            return $carry;
        });
    }
protected function buildUrlFromPath(array $path)
    {
        // Remove root level (homepage)
        array_shift($path);

        // Homepage
        if (count($path) === 0 && $this->treeStrategy->isHomeTreeRoot()) {
            return '/';
        }

        // Build uri from tree path
        return array_reduce($path, function ($carry, NestedSetRoutingPageInterface $item) {
            $carry .= '/' . $item->getSlug();
            return $carry;
        });
    }
protected function buildUrlFromPath ( array $ path ) { // Remove root level (homepage) array_shift ( $ path ) ; // Homepage if ( count ( $ path ) === 0 && $ this -> treeStrategy -> isHomeTreeRoot ( ) ) { return '/' ; } // Build uri from tree path return array_reduce ( $ path , function ( $ carry , NestedSetRoutingPageInterface $ item ) { $ carry .= '/' . $ item -> getSlug ( ) ; return $ carry ; } ) ; }
Build an url from a path

@param array $path

@return string
Build an url from a path