I would like to hide "Download" button on Sonata Admin from some of custom entity. How to hide/delete it?
If i override base_list.html.twig
and remove the download button from table_footer, it disappears all of entity lists. Is there any way to hide it from Admin class?
You can hide the "download" button by removing the corresponding route:
class YourClass extends AbstractAdmin {
public function configureRoutes(RouteCollection $collection) {
$collection->remove('export');
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With