src/Controller/Admin/EquipoCrudController.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Admin;
  3. use App\Entity\Equipo;
  4. use EasyCorp\Bundle\EasyAdminBundle\Config\Action;
  5. use EasyCorp\Bundle\EasyAdminBundle\Config\Actions;
  6. use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
  7. use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
  8. class EquipoCrudController extends AbstractCrudController
  9. {
  10.     public static function getEntityFqcn(): string
  11.     {
  12.         return Equipo::class;
  13.     }
  14.     public function configureActions(Actions $actions): Actions
  15.     {
  16.         return $actions
  17.             ->disable(Action::NEW, Action::EDITAction::DELETE)
  18.             ;
  19.     }
  20. }