]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Form/Type/RssType.php
Convert english translation file
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Form / Type / RssType.php
CommitLineData
0c83fd59 1<?php
4346a860 2
0c83fd59
J
3namespace Wallabag\CoreBundle\Form\Type;
4
5use Symfony\Component\Form\AbstractType;
619cc453 6use Symfony\Component\Form\Extension\Core\Type\SubmitType;
0c83fd59 7use Symfony\Component\Form\FormBuilderInterface;
75e9d1df 8use Symfony\Component\OptionsResolver\OptionsResolver;
0c83fd59
J
9
10class 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}