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