get(NewsletterContainer::class)->getRepositoryQuery(); } public function configureFields(string $pageName): iterable { return array_merge( [ FormField::addPanel('general'), TextField::new('title'), BooleanField::new('isMain') ->setCustomOption('toggle_label', 'Principale'), CKEditorField::new('description') ->hideOnIndex(), StatusField::new('status'), ], $this->getSeoPanel(), $this->getConfPanel() ); } public function createEntity(string $entityFqcn) { return $this->get(NewsletterContainer::class)->getFactory()->create(); } }