src/Form/Backend/Customer/SponsorContactType.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Form\Backend\Customer;
  3. use App\Form\Backend\Shared\ContactType;
  4. use Symfony\Component\Form\Extension\Core\Type\EmailType;
  5. use Symfony\Component\Form\Extension\Core\Type\TelType;
  6. use Symfony\Component\Form\Extension\Core\Type\UrlType;
  7. use Symfony\Component\Form\FormBuilderInterface;
  8. class SponsorContactType extends ContactType
  9. {
  10.     /**
  11.      * @param FormBuilderInterface $builder
  12.      * @param array $options
  13.      *
  14.      * @return void
  15.      */
  16.     public function buildForm(FormBuilderInterface $builder, array $options): void
  17.     {
  18.         $builder
  19.             ->add('phone'TelType::class, ['required' => false])
  20.             ->add('fax'TelType::class, ['required' => false])
  21.             ->add('email'EmailType::class)
  22.             ->add('url'UrlType::class, ['required' => false])
  23.         ;
  24.     }
  25. }