protected function normalizeOptions(array $options, array $value)
    {
        return $options['select2']['enabled']
            ? array_merge($value, [
                'error_bubbling' => false,
                'multiple' => false,
                'select2' => array_merge($options['select2'], [
                    'tags' => $options['allow_add'],
                ]),
            ])
            : $value;
    }
protected function normalizeOptions(array $options, array $value)
    {
        return $options['select2']['enabled']
            ? array_merge($value, [
                'error_bubbling' => false,
                'multiple' => false,
                'select2' => array_merge($options['select2'], [
                    'tags' => $options['allow_add'],
                ]),
            ])
            : $value;
    }
protected function normalizeOptions ( array $ options , array $ value ) { return $ options [ 'select2' ] [ 'enabled' ] ? array_merge ( $ value , [ 'error_bubbling' => false , 'multiple' => false , 'select2' => array_merge ( $ options [ 'select2' ] , [ 'tags' => $ options [ 'allow_add' ] , ] ) , ] ) : $ value ; }
Normalise the options for selector.

@param array $options The form options
@param array $value   The options of form type

@return array The normalized options for selector
Normalise the options for selector .