3 namespace Wallabag\CoreBundle\Form\Type
;
5 use Symfony\Component\Form\AbstractType
;
6 use Symfony\Component\Form\FormBuilderInterface
;
7 use Symfony\Component\OptionsResolver\OptionsResolver
;
9 class NewTagType
extends AbstractType
11 public function buildForm(FormBuilderInterface
$builder, array $options)
14 ->add('label', 'text', array('required' => true))
15 ->add('save', 'submit')
19 public function configureOptions(OptionsResolver
$resolver)
21 $resolver->setDefaults(array(
22 'data_class' => 'Wallabag\CoreBundle\Entity\Tag',
26 public function getName()