src/Configuration/ActionConfiguration.php
private function getFiltersNormalizer(): Closure
    {
        return function(Options $options, $data) {
            $normalizedData = [];

            foreach ($data as $name => $field) {
                if (is_string($field)) {
                    $field = [
                        'type' => $field,
                        'options' => [],
                    ];
                }
                $field['name'] = $name;

                $resolver = new OptionsResolver();
                $filterConfiguration = new FilterConfiguration();
                $filterConfiguration->configureOptions($resolver);
                $filterConfiguration->setParameters($resolver->resolve($field));

                $normalizedData[$name] = $filterConfiguration->getParameters();
            }

            return $normalizedData;
        };
    }
private function getFiltersNormalizer(): Closure
    {
        return function(Options $options, $data) {
            $normalizedData = [];

            foreach ($data as $name => $field) {
                if (is_string($field)) {
                    $field = [
                        'type' => $field,
                        'options' => [],
                    ];
                }
                $field['name'] = $name;

                $resolver = new OptionsResolver();
                $filterConfiguration = new FilterConfiguration();
                $filterConfiguration->configureOptions($resolver);
                $filterConfiguration->setParameters($resolver->resolve($field));

                $normalizedData[$name] = $filterConfiguration->getParameters();
            }

            return $normalizedData;
        };
    }
private function getFiltersNormalizer ( ) : Closure { return function ( Options $ options , $ data ) { $ normalizedData = [ ] ; foreach ( $ data as $ name => $ field ) { if ( is_string ( $ field ) ) { $ field = [ 'type' => $ field , 'options' => [ ] , ] ; } $ field [ 'name' ] = $ name ; $ resolver = new OptionsResolver ( ) ; $ filterConfiguration = new FilterConfiguration ( ) ; $ filterConfiguration -> configureOptions ( $ resolver ) ; $ filterConfiguration -> setParameters ( $ resolver -> resolve ( $ field ) ) ; $ normalizedData [ $ name ] = $ filterConfiguration -> getParameters ( ) ; } return $ normalizedData ; } ; }
Return the filters normalizer.

@return Closure
Return the filters normalizer .