- ->add('theme', 'choice', array('choices' => $this->themes))
- ->add('items_per_page', 'text')
- ->add('language')
- ->add('save', 'submit')
+ ->add('theme', ChoiceType::class, array(
+ 'choices' => array_flip($this->themes),
+ 'choices_as_values' => true,
+ ))
+ ->add('items_per_page')
+ ->add('language', ChoiceType::class, array(
+ 'choices' => array_flip($this->languages),
+ 'choices_as_values' => true,
+ ))
+ ->add('save', SubmitType::class)