protected function getUriInformation(NodeInterface $node, ControllerContext $controllerContext): array
    {
        $nodeInfo = [];
        if (!$node->getNodeType()->isOfType($this->documentNodeTypeRole)) {
            return $nodeInfo;
        }

        try {
            $nodeInfo['uri'] = $this->createRedirectToNode($controllerContext, $node);
        } catch (\Neos\Flow\Mvc\Routing\Exception\MissingActionNameException $exception) {
            // Unless there is a serious problem with routes there shouldn't be an exception ever.
            $nodeInfo['uri'] = '';
        }

        return $nodeInfo;
    }
protected function getUriInformation(NodeInterface $node, ControllerContext $controllerContext): array
    {
        $nodeInfo = [];
        if (!$node->getNodeType()->isOfType($this->documentNodeTypeRole)) {
            return $nodeInfo;
        }

        try {
            $nodeInfo['uri'] = $this->createRedirectToNode($controllerContext, $node);
        } catch (\Neos\Flow\Mvc\Routing\Exception\MissingActionNameException $exception) {
            // Unless there is a serious problem with routes there shouldn't be an exception ever.
            $nodeInfo['uri'] = '';
        }

        return $nodeInfo;
    }
protected function getUriInformation ( NodeInterface $ node , ControllerContext $ controllerContext ) : array { $ nodeInfo = [ ] ; if ( ! $ node -> getNodeType ( ) -> isOfType ( $ this -> documentNodeTypeRole ) ) { return $ nodeInfo ; } try { $ nodeInfo [ 'uri' ] = $ this -> createRedirectToNode ( $ controllerContext , $ node ) ; } catch ( \ Neos \ Flow \ Mvc \ Routing \ Exception \ MissingActionNameException $ exception ) { // Unless there is a serious problem with routes there shouldn't be an exception ever. $ nodeInfo [ 'uri' ] = '' ; } return $ nodeInfo ; }
Get the "uri" and "previewUri" for the given node

@param NodeInterface $node
@param ControllerContext $controllerContext
@return array
Get the uri and previewUri for the given node