X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FTaggingRuleType.php;h=732606c914b5fd730cfcc12488b0569860d762e1;hb=1bcfeb0f4ac9e7c70135ab8274387040c4a22849;hp=cfee21f17cfabb06eea0e2ac51a0158190ddbe12;hpb=77b9db87b84e20a6042444e3b18665bc66d4f1f2;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()