public function render()
{
if (isset($this->variables['nodes'])) {
$this->setConfiguration(array('nodes' => array('_descendAll' => array('_only' => array('name', 'path', 'identifier', 'properties', 'nodeType')))));
$this->setVariablesToRender(array('nodes'));
} else {
$this->setConfiguration(array('node' => array('_only' => array('name', 'path', 'identifier', 'properties', 'nodeType'))));
$this->setVariablesToRender(array('node'));
}
return parent::render();
}