lib/Collection/QueryType/Handler/Traits/ContentTypeFilterTrait.php
private function buildContentTypeFilterParameters(ParameterBuilderInterface $builder, array $groups = []): void
    {
        $builder->add(
            'filter_by_content_type',
            ParameterType\Compound\BooleanType::class,
            [
                'groups' => $groups,
            ]
        );

        $builder->get('filter_by_content_type')->add(
            'content_types',
            EzParameterType\ContentTypeType::class,
            [
                'multiple' => true,
                'groups' => $groups,
            ]
        );

        $builder->get('filter_by_content_type')->add(
            'content_types_filter',
            ParameterType\ChoiceType::class,
            [
                'required' => true,
                'options' => [
                    'Include content types' => 'include',
                    'Exclude content types' => 'exclude',
                ],
                'groups' => $groups,
            ]
        );
    }
private function buildContentTypeFilterParameters(ParameterBuilderInterface $builder, array $groups = []): void
    {
        $builder->add(
            'filter_by_content_type',
            ParameterType\Compound\BooleanType::class,
            [
                'groups' => $groups,
            ]
        );

        $builder->get('filter_by_content_type')->add(
            'content_types',
            EzParameterType\ContentTypeType::class,
            [
                'multiple' => true,
                'groups' => $groups,
            ]
        );

        $builder->get('filter_by_content_type')->add(
            'content_types_filter',
            ParameterType\ChoiceType::class,
            [
                'required' => true,
                'options' => [
                    'Include content types' => 'include',
                    'Exclude content types' => 'exclude',
                ],
                'groups' => $groups,
            ]
        );
    }
private function buildContentTypeFilterParameters ( ParameterBuilderInterface $ builder , array $ groups = [ ] ) : void { $ builder -> add ( 'filter_by_content_type' , ParameterType \ Compound \ BooleanType :: class , [ 'groups' => $ groups , ] ) ; $ builder -> get ( 'filter_by_content_type' ) -> add ( 'content_types' , EzParameterType \ ContentTypeType :: class , [ 'multiple' => true , 'groups' => $ groups , ] ) ; $ builder -> get ( 'filter_by_content_type' ) -> add ( 'content_types_filter' , ParameterType \ ChoiceType :: class , [ 'required' => true , 'options' => [ 'Include content types' => 'include' , 'Exclude content types' => 'exclude' , ] , 'groups' => $ groups , ] ) ; }
Builds the parameters for filtering by content types.
Builds the parameters for filtering by content types .