Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SurveyOptionType extends AbstractType
- {
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder->add('title', TextareaType::class);
- }
- public function configureOptions(OptionsResolver $resolver)
- {
- $resolver->setDefaults([
- 'data_class' => SurveyOption::class,
- ]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement