X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FNewTagType.php;h=0f5590311dbd9cba91bf29a1b21cd5ec56968171;hb=619cc45359ead519b64129181a07e14160fbbfcb;hp=8e4ab649b050646e7ded31037035f3e4a223b7f9;hpb=bccb5bba75e3f2bf8e89fef6b939500757c3d2b1;p=github%2Fwallabag%2Fwallabag.git 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 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; +use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -11,8 +13,8 @@ class NewTagType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('label', 'text', array('required' => true)) - ->add('save', 'submit') + ->add('label', TextType::class, array('required' => true)) + ->add('save', SubmitType::class) ; } @@ -23,7 +25,7 @@ class NewTagType extends AbstractType )); } - public function getName() + public function getBlockPrefix() { return 'tag'; }