3 namespace Wallabag\CoreBundle\Form\Type
;
5 use Symfony\Component\Form\AbstractType
;
6 use Symfony\Component\Form\Extension\Core\Type\CheckboxType
;
7 use Symfony\Component\Form\Extension\Core\Type\SubmitType
;
8 use Symfony\Component\Form\Extension\Core\Type\TextType
;
9 use Symfony\Component\Form\FormBuilderInterface
;
10 use Symfony\Component\OptionsResolver\OptionsResolver
;
12 class EditEntryType
extends AbstractType
14 public function buildForm(FormBuilderInterface
$builder, array $options)
17 ->add('title', TextType
::class, [
19 'label' => 'entry.edit.title_label',
21 ->add('is_public', CheckboxType
::class, [
23 'label' => 'entry.edit.is_public_label',
24 'property_path' => 'isPublic',
26 ->add('url', TextType
::class, [
29 'label' => 'entry.edit.url_label',
31 ->add('save', SubmitType
::class, [
32 'label' => 'entry.edit.save_label',
37 public function configureOptions(OptionsResolver
$resolver)
39 $resolver->setDefaults([
40 'data_class' => 'Wallabag\CoreBundle\Entity\Entry',
44 public function getBlockPrefix()