3 namespace Wallabag\CoreBundle\Form\Type
;
5 use Symfony\Component\Form\AbstractType
;
6 use Symfony\Component\Form\Extension\Core\Type\SubmitType
;
7 use Symfony\Component\Form\Extension\Core\Type\TextType
;
8 use Symfony\Component\Form\FormBuilderInterface
;
9 use Symfony\Component\OptionsResolver\OptionsResolver
;
11 class NewTagType
extends AbstractType
13 public function buildForm(FormBuilderInterface
$builder, array $options)
16 ->add('label', TextType
::class, array('required' => true))
17 ->add('save', SubmitType
::class)
21 public function configureOptions(OptionsResolver
$resolver)
23 $resolver->setDefaults(array(
24 'data_class' => 'Wallabag\CoreBundle\Entity\Tag',
28 public function getBlockPrefix()