]>
Commit | Line | Data |
---|---|---|
0c83fd59 | 1 | <?php |
4346a860 | 2 | |
0c83fd59 J |
3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | ||
5 | use Symfony\Component\Form\AbstractType; | |
619cc453 | 6 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; |
0c83fd59 | 7 | use Symfony\Component\Form\FormBuilderInterface; |
75e9d1df | 8 | use Symfony\Component\OptionsResolver\OptionsResolver; |
0c83fd59 J |
9 | |
10 | class RssType extends AbstractType | |
11 | { | |
12 | public function buildForm(FormBuilderInterface $builder, array $options) | |
13 | { | |
14 | $builder | |
0d42217e JB |
15 | ->add('rss_limit', null, array( |
16 | 'label' => 'config.form_rss.rss_limit', | |
17 | )) | |
18 | ->add('save', SubmitType::class, array( | |
19 | 'label' => 'config.form.save', | |
20 | )) | |
0c83fd59 J |
21 | ; |
22 | } | |
23 | ||
75e9d1df | 24 | public function configureOptions(OptionsResolver $resolver) |
0c83fd59 J |
25 | { |
26 | $resolver->setDefaults(array( | |
27 | 'data_class' => 'Wallabag\CoreBundle\Entity\Config', | |
28 | )); | |
29 | } | |
30 | ||
619cc453 | 31 | public function getBlockPrefix() |
0c83fd59 J |
32 | { |
33 | return 'rss_config'; | |
34 | } | |
35 | } |