/** * Return a list of action from list.object_actions * @return array */ public function getObjectActions() { $objectActions = parent::getObjectActions(); if (array_key_exists('edit', $objectActions)) { unset($objectActions['edit']); $this->objectActions = $objectActions; } return $this->objectActions; }
/** * (non-PHPdoc) * @see \Admingenerator\GeneratorBundle\Builder\BaseBuilder::getTemplatesToGenerate() */ public function getTemplatesToGenerate() { return parent::getTemplatesToGenerate() + array('EditBuilderTemplate' . self::TWIG_EXTENSION => 'Resources/views/' . $this->getBaseGeneratorName() . 'Edit/index.html.twig', 'Edit/FormBuilderTemplate' . self::TWIG_EXTENSION => 'Resources/views/' . $this->getBaseGeneratorName() . 'Edit/form.html.twig'); }