diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/NewTagType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/NewTagType.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/NewTagType.php b/src/Wallabag/CoreBundle/Form/Type/NewTagType.php index 8e4ab649..0f559031 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewTagType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewTagType.php | |||
@@ -3,6 +3,8 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
7 | use Symfony\Component\Form\Extension\Core\Type\TextType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 8 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | 10 | ||
@@ -11,8 +13,8 @@ class NewTagType extends AbstractType | |||
11 | public function buildForm(FormBuilderInterface $builder, array $options) | 13 | public function buildForm(FormBuilderInterface $builder, array $options) |
12 | { | 14 | { |
13 | $builder | 15 | $builder |
14 | ->add('label', 'text', array('required' => true)) | 16 | ->add('label', TextType::class, array('required' => true)) |
15 | ->add('save', 'submit') | 17 | ->add('save', SubmitType::class) |
16 | ; | 18 | ; |
17 | } | 19 | } |
18 | 20 | ||
@@ -23,7 +25,7 @@ class NewTagType extends AbstractType | |||
23 | )); | 25 | )); |
24 | } | 26 | } |
25 | 27 | ||
26 | public function getName() | 28 | public function getBlockPrefix() |
27 | { | 29 | { |
28 | return 'tag'; | 30 | return 'tag'; |
29 | } | 31 | } |