src/App/Form/Type/Select2EntityType.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Form\Type;
  3. use Symfony\Bridge\Doctrine\Form\Type\EntityType;
  4. use Symfony\Component\Form\AbstractType;
  5. /**
  6.  *
  7.  */
  8. final class Select2EntityType extends AbstractType
  9. {
  10.     /**
  11.      * {@inheritdoc}
  12.      */
  13.     public function getBlockPrefix(): string
  14.     {
  15.         return 'select2_entity';
  16.     }
  17.     /**
  18.      * {@inheritDoc}
  19.      */
  20.     public function getParent(): ?string
  21.     {
  22.         return EntityType::class;
  23.     }
  24. }