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, [
19 'placeholder' => 'tag.new.placeholder',
22 ->add('add', SubmitType
::class, [
23 'label' => 'tag.new.add',
28 public function configureOptions(OptionsResolver
$resolver)
30 $resolver->setDefaults([
31 'data_class' => 'Wallabag\CoreBundle\Entity\Tag',
35 public function getBlockPrefix()