Neos.Neos/Classes/ViewHelpers/Uri/NodeViewHelper.php
public function render($node = null, $format = null, $absolute = false, array $arguments = [], $section = '', $addQueryString = false, array $argumentsToBeExcludedFromQueryString = [], $baseNodeName = 'documentNode', $resolveShortcuts = true)
    {
        $baseNode = null;
        if (!$node instanceof NodeInterface) {
            $baseNode = $this->getContextVariable($baseNodeName);
            if (is_string($node) && substr($node, 0, 7) === 'node://') {
                $node = $this->linkingService->convertUriToObject($node, $baseNode);
            }
        }

        try {
            return $this->linkingService->createNodeUri(
                $this->controllerContext,
                $node,
                $baseNode,
                $format,
                $absolute,
                $arguments,
                $section,
                $addQueryString,
                $argumentsToBeExcludedFromQueryString,
                $resolveShortcuts
            );
        } catch (NeosException $exception) {
            $this->systemLogger->logException($exception);
        } catch (NoMatchingRouteException $exception) {
            $this->systemLogger->logException($exception);
        }
        return '';
    }
public function render($node = null, $format = null, $absolute = false, array $arguments = [], $section = '', $addQueryString = false, array $argumentsToBeExcludedFromQueryString = [], $baseNodeName = 'documentNode', $resolveShortcuts = true)
    {
        $baseNode = null;
        if (!$node instanceof NodeInterface) {
            $baseNode = $this->getContextVariable($baseNodeName);
            if (is_string($node) && substr($node, 0, 7) === 'node://') {
                $node = $this->linkingService->convertUriToObject($node, $baseNode);
            }
        }

        try {
            return $this->linkingService->createNodeUri(
                $this->controllerContext,
                $node,
                $baseNode,
                $format,
                $absolute,
                $arguments,
                $section,
                $addQueryString,
                $argumentsToBeExcludedFromQueryString,
                $resolveShortcuts
            );
        } catch (NeosException $exception) {
            $this->systemLogger->logException($exception);
        } catch (NoMatchingRouteException $exception) {
            $this->systemLogger->logException($exception);
        }
        return '';
    }
public function render ( $ node = null , $ format = null , $ absolute = false , array $ arguments = [ ] , $ section = '' , $ addQueryString = false , array $ argumentsToBeExcludedFromQueryString = [ ] , $ baseNodeName = 'documentNode' , $ resolveShortcuts = true ) { $ baseNode = null ; if ( ! $ node instanceof NodeInterface ) { $ baseNode = $ this -> getContextVariable ( $ baseNodeName ) ; if ( is_string ( $ node ) && substr ( $ node , 0 , 7 ) === 'node://' ) { $ node = $ this -> linkingService -> convertUriToObject ( $ node , $ baseNode ) ; } } try { return $ this -> linkingService -> createNodeUri ( $ this -> controllerContext , $ node , $ baseNode , $ format , $ absolute , $ arguments , $ section , $ addQueryString , $ argumentsToBeExcludedFromQueryString , $ resolveShortcuts ) ; } catch ( NeosException $ exception ) { $ this -> systemLogger -> logException ( $ exception ) ; } catch ( NoMatchingRouteException $ exception ) { $ this -> systemLogger -> logException ( $ exception ) ; } return '' ; }
Renders the URI.

@param mixed $node A node object, a string node path (absolute or relative), a string node://-uri or NULL
@param string $format Format to use for the URL, for example "html" or "json"
@param boolean $absolute If set, an absolute URI is rendered
@param array $arguments Additional arguments to be passed to the UriBuilder (for example pagination parameters)
@param string $section
@param boolean $addQueryString If set, the current query parameters will be kept in the URI
@param array $argumentsToBeExcludedFromQueryString arguments to be removed from the URI. Only active if $addQueryString = true
@param string $baseNodeName The name of the base node inside the Fusion context to use for the ContentContext or resolving relative paths
@param boolean $resolveShortcuts INTERNAL Parameter - if false, shortcuts are not redirected to their target. Only needed on rare backend occasions when we want to link to the shortcut itself.
@return string The rendered URI or NULL if no URI could be resolved for the given node
@throws ViewHelperException
Renders the URI .