Search code examples
phpsymfonyeasyadmin

Symfony - easyadmin hide action buttons


I want to remove a delete option button in my user list view.

I tried:

- label: 'Users'
          icon: 'users'
          children:
            - { label: 'Users', icon: 'list', entity: 'User', disabled_actions: ['delete']}

Solution

  • In chapter 7 you will find exemples how to diable actions : https://symfony.com/doc/2.x/bundles/EasyAdminBundle/book/actions-configuration.html

    If you want more help, show the rest of your configuration.