public function renderNode(NodeInterface $node, ControllerContext $controllerContext)
{
$nodeInfo = ['contextPath' => $node->getContextPath(), 'name' => $node->getName(), 'identifier' => $node->getIdentifier(), 'nodeType' => $node->getNodeType()->getName(), 'properties' => $this->buildNodeProperties($node), 'label' => $node->getLabel(), 'isAutoCreated' => $node->isAutoCreated(), 'children' => []];
if ($node->getNodeType()->isOfType('TYPO3.Neos:Document')) {
$nodeInfo['uri'] = $this->uri($node, $controllerContext);
}
foreach ($node->getChildNodes() as $childNode) {
/* @var NodeInterface $childNode */
$nodeInfo['children'][] = ['contextPath' => $childNode->getContextPath(), 'nodeType' => $childNode->getNodeType()->getName()];
}
return $nodeInfo;
}