public assignNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, array $propertyNames = ['name', 'path', 'identifier', 'properties', 'nodeType'] ) : void | ||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node to render |
$propertyNames | array | Optional list of property names to include in the JSON output |
return | void |
public function assignNode(NodeInterface $node, array $propertyNames = array('name', 'path', 'identifier', 'properties', 'nodeType'))
{
$this->setConfiguration(array('value' => array('data' => array('_only' => array('name', 'path', 'identifier', 'properties', 'nodeType'), '_descend' => array('properties' => $propertyNames)))));
$this->assign('value', array('data' => $node, 'success' => true));
}