Neos.Neos/Classes/Service/View/NodeView.php
public function assignNode(NodeInterface $node, array $propertyNames = ['name', 'path', 'identifier', 'properties', 'nodeType'])
    {
        $this->setConfiguration(
            [
                'value' => [
                    'data' => [
                        '_only' => ['name', 'path', 'identifier', 'properties', 'nodeType'],
                        '_descend' => ['properties' => $propertyNames]
                    ]
                ]
            ]
        );
        $this->assign('value', ['data' => $node, 'success' => true]);
    }
public function assignNode(NodeInterface $node, array $propertyNames = ['name', 'path', 'identifier', 'properties', 'nodeType'])
    {
        $this->setConfiguration(
            [
                'value' => [
                    'data' => [
                        '_only' => ['name', 'path', 'identifier', 'properties', 'nodeType'],
                        '_descend' => ['properties' => $propertyNames]
                    ]
                ]
            ]
        );
        $this->assign('value', ['data' => $node, 'success' => true]);
    }
public function assignNode ( NodeInterface $ node , array $ propertyNames = [ 'name' , 'path' , 'identifier' , 'properties' , 'nodeType' ] ) { $ this -> setConfiguration ( [ 'value' => [ 'data' => [ '_only' => [ 'name' , 'path' , 'identifier' , 'properties' , 'nodeType' ] , '_descend' => [ 'properties' => $ propertyNames ] ] ] ] ) ; $ this -> assign ( 'value' , [ 'data' => $ node , 'success' => true ] ) ; }
Assigns a node to the NodeView.

@param NodeInterface $node The node to render
@param array $propertyNames Optional list of property names to include in the JSON output
@return void
Assigns a node to the NodeView .