diff --git a/src/lib/Form/Type/ReferenceCollectionType.php b/src/lib/Form/Type/ReferenceCollectionType.php new file mode 100644 index 0000000000..3937c5d272 --- /dev/null +++ b/src/lib/Form/Type/ReferenceCollectionType.php @@ -0,0 +1,34 @@ + */ + public function getParent(): string + { + return CollectionType::class; + } + + public function configureOptions(OptionsResolver $resolver): void + { + $resolver->setDefaults([ + 'required' => false, + 'allow_add' => true, + 'label' => false, + 'entry_options' => [ + 'label' => false, + ], + ]); + } +}