src/AdminBundle/Admin/Ticket/TicketDashboardAdmin.php line 9

Open in your IDE?
  1. <?php
  2. namespace AdminBundle\Admin\Ticket;
  3. use AdminBundle\Admin\BaseAdmin;
  4. use Sonata\AdminBundle\Route\RouteCollectionInterface;
  5. class TicketDashboardAdmin extends BaseAdmin
  6. {
  7.     protected $baseRouteName 'ticket-dashboard';
  8.     protected $baseRoutePattern 'ticket-dashboard-action';
  9.     protected function configureRoutes(RouteCollectionInterface $collection): void
  10.     {
  11.         $collection->remove('create');
  12.     }
  13.     protected function configure(): void
  14.     {
  15.         parent::configure(); // TODO: Change the autogenerated stub
  16.         $this->setTemplate('list''@Admin/CRUD/Ticket/ticket-dashboard.html.twig');
  17.     }
  18. }