add(Crud::PAGE_INDEX, Action::DETAIL) ->remove(Crud::PAGE_INDEX, Action::NEW) ->remove(Crud::PAGE_INDEX, Action::EDIT) ->remove(Crud::PAGE_DETAIL, Action::EDIT) ; } public function configureCrud(Crud $crud): Crud { return $crud ->setEntityLabelInSingular('Buchungsentwurf') ->setEntityLabelInPlural('Buchungsentwürfe') ->setDefaultSort(['createdAt' => 'DESC']); } public function configureFields(string $pageName): iterable { return [ IntegerField::new('bookingId', 'Buchungs ID'), AssociationField::new('user', 'Kundenaccount')->formatValue(fn (User $user) => $user->getEmail()), DateTimeField::new('createdAt', 'erstellt am'), DateTimeField::new('updatedAt', 'aktualisiert am'), JsonDataField::new('formData', 'Daten')->onlyOnDetail() ]; } }