reorganized menu
This commit is contained in:
parent
a7dc9bb49b
commit
e65044fe79
|
@ -13,16 +13,18 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
|
|||
*/
|
||||
class QuotesCrudController extends AbstractCrudController
|
||||
{
|
||||
public static function getEntityFqcn(): string
|
||||
{
|
||||
return Quotes::class;
|
||||
}
|
||||
public static function getEntityFqcn(): string
|
||||
{
|
||||
return Quotes::class;
|
||||
}
|
||||
|
||||
public function configureFields(string $pageName): iterable
|
||||
{
|
||||
return [
|
||||
IdField::new(propertyName: 'id'),
|
||||
TextField::new(propertyName: 'quote'),
|
||||
];
|
||||
}
|
||||
public function configureFields(string $pageName): iterable
|
||||
{
|
||||
yield IdField::new(propertyName: 'id')
|
||||
->onlyOnIndex();
|
||||
yield TextField::new(propertyName: 'quote')
|
||||
->onlyOnIndex();
|
||||
yield TextEditorField::new(propertyName: 'quote')
|
||||
->onlyOnForms();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue