workshopThematicStore = $workshopThematicStore; } public function configureIndex(): array { return [ 'workshopThematic', 'hook', 'title', 'entries', 'status' ]; } public function configureForm(): array { return [ 'workshopThematic', 'type', 'hook', 'title', 'description', 'status' ]; } public function configureFields(): array { $workshopThematicArray = $this->workshopThematicStore->get(); return [ 'workshopThematic' => AssociationField::new('workshopThematic') ->setFormTypeOption('choices', $workshopThematicArray), 'type' => AssociationField::new('type'), 'title' => TextField::new('title'), 'hook' => TextField::new('hook'), 'description' => CKEditorField::new('description'), 'entries' => AssociationField::new('entries') ->setTemplatePath('@LcPietro/admin/workshop/field/entries.html.twig') ]; } }