Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Form\Type\Filter;
- use Sylius\Component\Core\Model\Taxon;
- use Symfony\Bridge\Doctrine\Form\Type\EntityType;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\FormBuilderInterface;
- class TaxonsCheckboxType extends AbstractType {
- public function buildForm(FormBuilderInterface $builder, array $options) {
- $builder
- ->add('id', EntityType::class, [
- 'class' => Taxon::class,
- 'expanded' => TRUE,
- 'multiple' => TRUE,
- 'label' => false
- ])
- ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement