3 namespace Wallabag\CoreBundle\Form\Type
;
5 use Symfony\Component\Form\AbstractType
;
6 use Symfony\Component\Form\Extension\Core\Type\SubmitType
;
7 use Symfony\Component\Form\Extension\Core\Type\TextType
;
8 use Symfony\Component\Form\FormBuilderInterface
;
9 use Symfony\Component\OptionsResolver\OptionsResolver
;
11 class EditEntryType
extends AbstractType
13 public function buildForm(FormBuilderInterface
$builder, array $options)
16 ->add('title', TextType
::class, [
18 'label' => 'entry.edit.title_label',
20 ->add('url', TextType
::class, [
23 'label' => 'entry.edit.url_label',
25 ->add('origin_url', TextType
::class, [
27 'property_path' => 'originUrl',
28 'label' => 'entry.edit.origin_url_label',
30 ->add('save', SubmitType
::class, [
31 'label' => 'entry.edit.save_label',
36 public function configureOptions(OptionsResolver
$resolver)
38 $resolver->setDefaults([
39 'data_class' => 'Wallabag\CoreBundle\Entity\Entry',
43 public function getBlockPrefix()