aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/NewEntryType.php')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/NewEntryType.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php b/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php
index 69fab6fb..7d74fee3 100644
--- a/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php
@@ -12,18 +12,18 @@ class NewEntryType extends AbstractType
12 public function buildForm(FormBuilderInterface $builder, array $options) 12 public function buildForm(FormBuilderInterface $builder, array $options)
13 { 13 {
14 $builder 14 $builder
15 ->add('url', UrlType::class, array( 15 ->add('url', UrlType::class, [
16 'required' => true, 16 'required' => true,
17 'label' => 'entry.new.form_new.url_label', 17 'label' => 'entry.new.form_new.url_label',
18 )) 18 ])
19 ; 19 ;
20 } 20 }
21 21
22 public function configureOptions(OptionsResolver $resolver) 22 public function configureOptions(OptionsResolver $resolver)
23 { 23 {
24 $resolver->setDefaults(array( 24 $resolver->setDefaults([
25 'data_class' => 'Wallabag\CoreBundle\Entity\Entry', 25 'data_class' => 'Wallabag\CoreBundle\Entity\Entry',
26 )); 26 ]);
27 } 27 }
28 28
29 public function getBlockPrefix() 29 public function getBlockPrefix()