diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/EditEntryType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/EditEntryType.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php index 23d7b239..40e5b5b9 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php | |||
@@ -14,30 +14,30 @@ class EditEntryType extends AbstractType | |||
14 | public function buildForm(FormBuilderInterface $builder, array $options) | 14 | public function buildForm(FormBuilderInterface $builder, array $options) |
15 | { | 15 | { |
16 | $builder | 16 | $builder |
17 | ->add('title', TextType::class, array( | 17 | ->add('title', TextType::class, [ |
18 | 'required' => true, | 18 | 'required' => true, |
19 | 'label' => 'entry.edit.title_label', | 19 | 'label' => 'entry.edit.title_label', |
20 | )) | 20 | ]) |
21 | ->add('is_public', CheckboxType::class, array( | 21 | ->add('is_public', CheckboxType::class, [ |
22 | 'required' => false, | 22 | 'required' => false, |
23 | 'label' => 'entry.edit.is_public_label', | 23 | 'label' => 'entry.edit.is_public_label', |
24 | )) | 24 | ]) |
25 | ->add('url', TextType::class, array( | 25 | ->add('url', TextType::class, [ |
26 | 'disabled' => true, | 26 | 'disabled' => true, |
27 | 'required' => false, | 27 | 'required' => false, |
28 | 'label' => 'entry.edit.url_label', | 28 | 'label' => 'entry.edit.url_label', |
29 | )) | 29 | ]) |
30 | ->add('save', SubmitType::class, array( | 30 | ->add('save', SubmitType::class, [ |
31 | 'label' => 'entry.edit.save_label', | 31 | 'label' => 'entry.edit.save_label', |
32 | )) | 32 | ]) |
33 | ; | 33 | ; |
34 | } | 34 | } |
35 | 35 | ||
36 | public function configureOptions(OptionsResolver $resolver) | 36 | public function configureOptions(OptionsResolver $resolver) |
37 | { | 37 | { |
38 | $resolver->setDefaults(array( | 38 | $resolver->setDefaults([ |
39 | 'data_class' => 'Wallabag\CoreBundle\Entity\Entry', | 39 | 'data_class' => 'Wallabag\CoreBundle\Entity\Entry', |
40 | )); | 40 | ]); |
41 | } | 41 | } |
42 | 42 | ||
43 | public function getBlockPrefix() | 43 | public function getBlockPrefix() |