src/Juki/Bundle/AppBundle/EventListener/SectionSubscriber.php line 29

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Juki\Bundle\AppBundle\EventListener;
  4. use Doctrine\ORM\EntityRepository;
  5. use Hitso\Bundle\FormBundle\Event\FormEvent;
  6. use Juki\Bundle\AppBundle\Entity\Dictionary\Shop;
  7. use Symfony\Bridge\Doctrine\Form\Type\EntityType;
  8. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  9. use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
  10. use Symfony\Component\Form\Extension\Core\Type\TextType;
  11. /**
  12.  * Class SectionSubscriber
  13.  *
  14.  * @package Juki\Bundle\AppBundle\EventListener
  15.  */
  16. final class SectionSubscriber implements EventSubscriberInterface
  17. {
  18.     public static function getSubscribedEvents()
  19.     {
  20.         return [
  21.             'section.form_init' => 'onSectionFormInit',
  22.         ];
  23.     }
  24.     public function onSectionFormInit(FormEvent $event)
  25.     {
  26.         $builder $event->getBuilder();
  27. //        $builder->remove('showButton');
  28. //        $builder->remove('buttonTitle');
  29. //        $builder->remove('buttonUrl');
  30.     }
  31. }