public function render()
{
if (isset($this->variables['assets'])) {
$this->setConfiguration(array('assets' => array('_descendAll' => array('_only' => array('label', 'tags', 'identifier')))));
$this->setVariablesToRender(array('assets'));
} else {
$this->setConfiguration(array('asset' => array('_only' => array('label', 'tags', 'identifier'))));
$this->setVariablesToRender(array('asset'));
}
return parent::render();
}