- 'choices' => array(
- 'config.form_settings.reading_speed.100_word' => '0.5',
- 'config.form_settings.reading_speed.200_word' => '1',
- 'config.form_settings.reading_speed.300_word' => '1.5',
- 'config.form_settings.reading_speed.400_word' => '2',
- ),
- ))
- ->add('language', ChoiceType::class, array(
+ 'property_path' => 'readingSpeed',
+ ])
+ ->add('action_mark_as_read', ChoiceType::class, [
+ 'label' => 'config.form_settings.action_mark_as_read.label',
+ 'property_path' => 'actionMarkAsRead',
+ 'choices' => [
+ 'config.form_settings.action_mark_as_read.redirect_homepage' => Config::REDIRECT_TO_HOMEPAGE,
+ 'config.form_settings.action_mark_as_read.redirect_current_page' => Config::REDIRECT_TO_CURRENT_PAGE,
+ ],
+ ])
+ ->add('language', ChoiceType::class, [