src/Form/MissionParticipantDelaisType.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Form;
  3. use App\Entity\Mission;
  4. use App\Entity\MissionParticipant;
  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;
  10. class MissionParticipantDelaisType extends AbstractType
  11. {
  12.     public function buildForm(FormBuilderInterface $builder, array $options): void
  13.     {
  14.         $builder
  15.             ->add('initialTime'TextType::class, [
  16.                 'label' => 'false',
  17.                 'required' => false,
  18.             ])
  19.         ;
  20.     }
  21.     public function configureOptions(OptionsResolver $resolver): void
  22.     {
  23.         $resolver->setDefaults([
  24.             'data_class' => MissionParticipant::class,
  25.         ]);
  26.     }
  27. }