src/Form/VehicleRtsActivitiesInvoicesType.php line 9

  1. <?php
  2. namespace App\Form;
  3. use Symfony\Component\Form\AbstractType;
  4. use Symfony\Component\Form\FormBuilderInterface;
  5. use Symfony\Component\OptionsResolver\OptionsResolver;
  6. class VehicleRtsActivitiesInvoicesType extends AbstractType
  7. {
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  11.     public function buildForm(FormBuilderInterface $builder, array $options)
  12.     {
  13.         $builder->add('supplierInvoice'SupplierInvoicesType::class, array(
  14.             'label'=>false,
  15.             'theEffectiveVat'=> $options['theEffectiveVat']
  16.             ));
  17.     }
  18.     
  19.     /**
  20.      * {@inheritdoc}
  21.      */
  22.     public function configureOptions(OptionsResolver $resolver)
  23.     {
  24.         $resolver->setDefaults(array(
  25.             'data_class' => 'App\Entity\VehicleRtsActivitiesInvoices',
  26.             'theEffectiveVat' => false
  27.         ));
  28.     }
  29.     /**
  30.      * {@inheritdoc}
  31.      */
  32.     public function getBlockPrefix()
  33.     {
  34.         return 'appbundle_vehiclertsactivitiesinvoices';
  35.     }
  36. }