X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FTaggingRuleType.php;h=732606c914b5fd730cfcc12488b0569860d762e1;hb=f209798368de66b4acd8b892fe71018ebb30c2da;hp=cfee21f17cfabb06eea0e2ac51a0158190ddbe12;hpb=439b36323e37f669b056cc5228c44bb91196256c;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php b/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php index cfee21f1..732606c9 100644 --- a/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php +++ b/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php @@ -14,19 +14,19 @@ class TaggingRuleType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('rule', TextType::class, array( + ->add('rule', TextType::class, [ 'required' => true, 'label' => 'config.form_rules.rule_label', - )) - ->add('save', SubmitType::class, array( + ]) + ->add('save', SubmitType::class, [ 'label' => 'config.form.save', - )) + ]) ; $tagsField = $builder - ->create('tags', TextType::class, array( + ->create('tags', TextType::class, [ 'label' => 'config.form_rules.tags_label', - )) + ]) ->addModelTransformer(new StringToListTransformer(',')); $builder->add($tagsField); @@ -34,9 +34,9 @@ class TaggingRuleType extends AbstractType public function configureOptions(OptionsResolver $resolver) { - $resolver->setDefaults(array( + $resolver->setDefaults([ 'data_class' => 'Wallabag\CoreBundle\Entity\TaggingRule', - )); + ]); } public function getBlockPrefix()