vendor/bitbag/elasticsearch-plugin/src/Form/Type/NameFilterType.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file has been created by developers from BitBag.
  4.  * Feel free to contact us once you face any issues or want to start
  5.  * another great project.
  6.  * You can find more information about us on https://bitbag.io and write us
  7.  * an email on hello@bitbag.io.
  8.  */
  9. declare(strict_types=1);
  10. namespace BitBag\SyliusElasticsearchPlugin\Form\Type;
  11. use Symfony\Component\Form\Extension\Core\Type\TextType;
  12. use Symfony\Component\OptionsResolver\OptionsResolver;
  13. final class NameFilterType extends AbstractFilterType
  14. {
  15.     public function configureOptions(OptionsResolver $resolver): void
  16.     {
  17.         parent::configureOptions($resolver);
  18.         $resolver->setDefaults([
  19.             'label' => 'bitbag_sylius_elasticsearch_plugin.ui.name',
  20.             'required' => false,
  21.         ]);
  22.     }
  23.     public function getParent(): string
  24.     {
  25.         return TextType::class;
  26.     }
  27. }