Deleting objects
This document will cover the Delete action and any related configuration options.
Basic configuration
Note
TODO: global (yaml) options that affect the delete action any Admin configuration options that affect delete * a note about lifecycle events triggered by delete?
Routes
You can disable deleting entities by removing the corresponding routes in your Admin. For more detailed information about routes, see Routing:
1 2 3 4 5 6 7 8 9
// src/Admin/PersonAdmin.php
final class PersonAdmin extends AbstractAdmin
{
protected function configureRoutes(RouteCollectionInterface $collection): void
{
// Removing the delete route will disable deleting entities.
}
}
This work, including the code samples, is licensed under a
Creative Commons BY-SA 3.0 license.