private function resolveOptions(GridTypeInterface $type, Source $source = null, array $options = [])
    {
        $resolver = new OptionsResolver();

        $type->configureOptions($resolver);

        if (null !== $source && !isset($options['source'])) {
            $options['source'] = $source;
        }

        $options = $resolver->resolve($options);

        return $options;
    }
private function resolveOptions(GridTypeInterface $type, Source $source = null, array $options = [])
    {
        $resolver = new OptionsResolver();

        $type->configureOptions($resolver);

        if (null !== $source && !isset($options['source'])) {
            $options['source'] = $source;
        }

        $options = $resolver->resolve($options);

        return $options;
    }
private function resolveOptions ( GridTypeInterface $ type , Source $ source = null , array $ options = [ ] ) { $ resolver = new OptionsResolver ( ) ; $ type -> configureOptions ( $ resolver ) ; if ( null !== $ source && ! isset ( $ options [ 'source' ] ) ) { $ options [ 'source' ] = $ source ; } $ options = $ resolver -> resolve ( $ options ) ; return $ options ; }
Returns the options resolved.

@param GridTypeInterface $type
@param Source            $source
@param array             $options

@return array
Returns the options resolved .