EasyAdminBundle
EasyAdminBundle copied to clipboard
Feature Request: add edit link to Entity grid row name
Short description of what this feature will allow to do: After creating an entity, clicking on a row in the default grid will go to an edit page
Example of how to use this feature
User creates an entity, and a default CrudController. When loading the main grid, clicking on a row takes the user to the Entity Edit screen.
In code, this could be an addition to the configureFields() method in the Controller class:
public function configureFields(string $pageName): iterable
{
return [
HiddenField::new('id'),
TextField::new('name')
->setClickAction(ACTION::EDIT),
];
}
or maybe a new configureRow method:
public function configureRow(string $pageName): iterable
{
return [
'setClickAction' => ACTION::EDIT
];
}