]>
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 | |
371ac69a | 15 | ->add('rss_limit') |
619cc453 | 16 | ->add('save', SubmitType::class) |
0c83fd59 J |
17 | ; |
18 | } | |
19 | ||
75e9d1df | 20 | public function configureOptions(OptionsResolver $resolver) |
0c83fd59 J |
21 | { |
22 | $resolver->setDefaults(array( | |
23 | 'data_class' => 'Wallabag\CoreBundle\Entity\Config', | |
24 | )); | |
25 | } | |
26 | ||
619cc453 | 27 | public function getBlockPrefix() |
0c83fd59 J |
28 | { |
29 | return 'rss_config'; | |
30 | } | |
31 | } |