src/Sulu/Bundle/ResourceBundle/DependencyInjection/SuluResourceExtension.php
private function setDefaultForFilterConditionsConjunction(&$config)
    {
        if (!array_key_exists('filters', $config) ||
            !array_key_exists('conjunctions', $config['filters']) ||
            0 === count($config['filters']['conjunctions'])
        ) {
            $config['filters'] = [];
            $config['filters']['conjunctions'] = [
                [
                    'id' => 'and',
                    'translation' => 'resource.filter.conjunction.and',
                ],
                [
                    'id' => 'or',
                    'translation' => 'resource.filter.conjunction.or',
                ],
            ];
        }
    }
private function setDefaultForFilterConditionsConjunction(&$config)
    {
        if (!array_key_exists('filters', $config) ||
            !array_key_exists('conjunctions', $config['filters']) ||
            0 === count($config['filters']['conjunctions'])
        ) {
            $config['filters'] = [];
            $config['filters']['conjunctions'] = [
                [
                    'id' => 'and',
                    'translation' => 'resource.filter.conjunction.and',
                ],
                [
                    'id' => 'or',
                    'translation' => 'resource.filter.conjunction.or',
                ],
            ];
        }
    }
private function setDefaultForFilterConditionsConjunction ( & $ config ) { if ( ! array_key_exists ( 'filters' , $ config ) || ! array_key_exists ( 'conjunctions' , $ config [ 'filters' ] ) || 0 === count ( $ config [ 'filters' ] [ 'conjunctions' ] ) ) { $ config [ 'filters' ] = [ ] ; $ config [ 'filters' ] [ 'conjunctions' ] = [ [ 'id' => 'and' , 'translation' => 'resource.filter.conjunction.and' , ] , [ 'id' => 'or' , 'translation' => 'resource.filter.conjunction.or' , ] , ] ; } }
Sets default values for filter condition conjunction.

@param $config
Sets default values for filter condition conjunction .