]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Form/Type/TaggingRuleImportType.php
Merge pull request #4054 from wallabag/fix/phpunit-lock
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Form / Type / TaggingRuleImportType.php
CommitLineData
34be2d5d
JB
1<?php
2
3namespace Wallabag\CoreBundle\Form\Type;
4
5use Symfony\Component\Form\AbstractType;
6use Symfony\Component\Form\Extension\Core\Type\FileType;
7use Symfony\Component\Form\Extension\Core\Type\SubmitType;
8use Symfony\Component\Form\FormBuilderInterface;
9
10class TaggingRuleImportType extends AbstractType
11{
12 public function buildForm(FormBuilderInterface $builder, array $options)
13 {
14 $builder
15 ->add('file', FileType::class, [
16 'label' => 'config.form_rules.file_label',
17 'required' => true,
18 ])
19 ->add('import', SubmitType::class, [
20 'label' => 'config.form_rules.import_submit',
21 ])
22 ;
23 }
24
25 public function getBlockPrefix()
26 {
27 return 'upload_tagging_rule_file';
28 }
29}