Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Form\Type\Filter;
  4.  
  5. use Sylius\Component\Core\Model\Taxon;
  6. use Symfony\Bridge\Doctrine\Form\Type\EntityType;
  7. use Symfony\Component\Form\AbstractType;
  8. use Symfony\Component\Form\FormBuilderInterface;
  9.  
  10. class TaxonsCheckboxType extends AbstractType {
  11. public function buildForm(FormBuilderInterface $builder, array $options) {
  12. $builder
  13. ->add('id', EntityType::class, [
  14. 'class' => Taxon::class,
  15. 'expanded' => TRUE,
  16. 'multiple' => TRUE,
  17. 'label' => false
  18. ])
  19. ;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement