Neos.Neos/Classes/Controller/Service/NodesController.php
public function showAction($identifier, $workspaceName = 'live', array $dimensions = [])
    {
        $contentContext = $this->createContentContext($workspaceName, $dimensions);
        /** @var $node NodeInterface */
        $node = $contentContext->getNodeByIdentifier($identifier);

        if ($node === null) {
            $this->addExistingNodeVariantInformationToResponse($identifier, $contentContext);
            $this->throwStatus(404);
        }

        $convertedNodeProperties = $this->nodePropertyConverterService->getPropertiesArray($node);
        array_walk($convertedNodeProperties, function (&$value) {
            if (is_array($value)) {
                $value = json_encode($value);
            }
        });

        $this->view->assignMultiple([
            'node' => $node,
            'convertedNodeProperties' => $convertedNodeProperties
        ]);
    }
public function showAction($identifier, $workspaceName = 'live', array $dimensions = [])
    {
        $contentContext = $this->createContentContext($workspaceName, $dimensions);
        /** @var $node NodeInterface */
        $node = $contentContext->getNodeByIdentifier($identifier);

        if ($node === null) {
            $this->addExistingNodeVariantInformationToResponse($identifier, $contentContext);
            $this->throwStatus(404);
        }

        $convertedNodeProperties = $this->nodePropertyConverterService->getPropertiesArray($node);
        array_walk($convertedNodeProperties, function (&$value) {
            if (is_array($value)) {
                $value = json_encode($value);
            }
        });

        $this->view->assignMultiple([
            'node' => $node,
            'convertedNodeProperties' => $convertedNodeProperties
        ]);
    }
public function showAction ( $ identifier , $ workspaceName = 'live' , array $ dimensions = [ ] ) { $ contentContext = $ this -> createContentContext ( $ workspaceName , $ dimensions ) ; /** @var $node NodeInterface */ $ node = $ contentContext -> getNodeByIdentifier ( $ identifier ) ; if ( $ node === null ) { $ this -> addExistingNodeVariantInformationToResponse ( $ identifier , $ contentContext ) ; $ this -> throwStatus ( 404 ) ; } $ convertedNodeProperties = $ this -> nodePropertyConverterService -> getPropertiesArray ( $ node ) ; array_walk ( $ convertedNodeProperties , function ( & $ value ) { if ( is_array ( $ value ) ) { $ value = json_encode ( $ value ) ; } } ) ; $ this -> view -> assignMultiple ( [ 'node' => $ node , 'convertedNodeProperties' => $ convertedNodeProperties ] ) ; }
Shows a specific node

@param string $identifier Specifies the node to look up
@param string $workspaceName Name of the workspace to use for querying the node
@param array $dimensions Optional list of dimensions and their values which should be used for querying the specified node
@return string
Shows a specific node