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

        $builder->get('use_current_location')->add(
            'parent_location_id',
            EzParameterType\LocationType::class,
            [
                'allow_invalid' => true,
                'groups' => $groups,
            ]
        );
    }
private function buildParentLocationParameters(ParameterBuilderInterface $builder, array $groups = []): void
    {
        $builder->add(
            'use_current_location',
            ParameterType\Compound\BooleanType::class,
            [
                'reverse' => true,
                'groups' => $groups,
            ]
        );

        $builder->get('use_current_location')->add(
            'parent_location_id',
            EzParameterType\LocationType::class,
            [
                'allow_invalid' => true,
                'groups' => $groups,
            ]
        );
    }
private function buildParentLocationParameters ( ParameterBuilderInterface $ builder , array $ groups = [ ] ) : void { $ builder -> add ( 'use_current_location' , ParameterType \ Compound \ BooleanType :: class , [ 'reverse' => true , 'groups' => $ groups , ] ) ; $ builder -> get ( 'use_current_location' ) -> add ( 'parent_location_id' , EzParameterType \ LocationType :: class , [ 'allow_invalid' => true , 'groups' => $ groups , ] ) ; }
Builds the parameters for filtering by parent location.
Builds the parameters for filtering by parent location .