public function render() { // create button if ($this->showNavCreate) { $this->nav->addItem(new Navbar\Item(array('label' => t('Create new'), 'icon' => 'glyphicon-new-window', 'url' => url(current_path(), array('action' => 'add'))))); } // load CSV helper if ($this->csvExport) { new \Meta\Builder\CsvExporter($this); } return parent::render(); }