public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        
        $choiceList = function (Options $options) use (&$choiceListCache) {
            // Harden against NULL values (like in EntityType and ModelType)
            $choices = null !== $options['choices'] ? $options['choices'] : array();

            // Reuse existing choice lists in order to increase performance
            $hash = md5(json_encode(array($choices, $options['preferred_choices'])));

            if (!isset($choiceListCache[$hash])) {
                $choiceListCache[$hash] = new SimpleChoiceList($choices, $options['preferred_choices']);
            }

            return $choiceListCache[$hash];
        };
        
        $resolver->setDefaults(array(
            'multiple'          => false,
            'expanded'          => false,
            'choice_list'       => $choiceList,
            'choices'           => 
               array( 
                    '#ffffff' =>'White',
                    '#cccccc' =>'Light Grey',
                    '#777777' =>'Grey',
                    '#333333' =>'Dark Grey',
                    '#000000' =>'Black',
                    '#2f4096' =>'Dark Blue',
                    '#0082be' =>'Light Blue',
                    '#32c4ec' =>'Aqua',
                    '#00944f' =>'Dark Green',
                    '#39af4c' =>'Light Green',
                    '#b2ce40' =>'Greenish',
                    '#6c2c8e' =>'Dark Purple',
                    '#913990' =>'Purple',
                    '#b989ba' =>'Lilac',
                    '#F934C5' =>'Dark Pink',
                    '#f3aebc' =>'Light Pink',
                    '#e81e25' =>'Red',
                    '#ed7043' =>'Peach',
                    '#f39f2b' =>'Orange',
                    '#ecba4b' =>'Light Orange',
                    '#fce92d' =>'Yellow',
                    '#f9eea9' =>'Cream',
                 
//                  Alternative Color Palette
//                    "#ffffff"=>'White',
//                    "#000000"=>'Black',
//                    "#333333"=>'Dary Gray',
//                    "#7bd148"=>'Green',
//                    "#5484ed"=>'Bold blue',
//                    "#a4bdfc"=>'Blue',
//                    "#46d6db"=>'Turquoise',
//                    "#7ae7bf"=>'Light green',
//                    "#51b749"=>'Bold green',
//                    "#fbd75b"=>'Yellow',
//                    "#ffb878"=>'Orange',
//                    "#ff887c"=>'Red',
//                    "#F934C5"=>'Pink',
//                    "#dc2127"=>'Bold red',
//                    "#dbadff"=>'Purple',
//                    "#e1e1e1"=>'Gray'
                        ),
            'preferred_choices' => array(),
            'empty_data'        => null,
            'empty_value'       => null,
            'error_bubbling'    => false,
            'compound'          => false,
            'include_jquery'    => false,
            'include_js'        => false,
            'include_js_constructor'=>true,
            'include_css'       => false,
            'picker'            => false,
            'placeholder'       => false
        ));

    }
public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        
        $choiceList = function (Options $options) use (&$choiceListCache) {
            // Harden against NULL values (like in EntityType and ModelType)
            $choices = null !== $options['choices'] ? $options['choices'] : array();

            // Reuse existing choice lists in order to increase performance
            $hash = md5(json_encode(array($choices, $options['preferred_choices'])));

            if (!isset($choiceListCache[$hash])) {
                $choiceListCache[$hash] = new SimpleChoiceList($choices, $options['preferred_choices']);
            }

            return $choiceListCache[$hash];
        };
        
        $resolver->setDefaults(array(
            'multiple'          => false,
            'expanded'          => false,
            'choice_list'       => $choiceList,
            'choices'           => 
               array( 
                    '#ffffff' =>'White',
                    '#cccccc' =>'Light Grey',
                    '#777777' =>'Grey',
                    '#333333' =>'Dark Grey',
                    '#000000' =>'Black',
                    '#2f4096' =>'Dark Blue',
                    '#0082be' =>'Light Blue',
                    '#32c4ec' =>'Aqua',
                    '#00944f' =>'Dark Green',
                    '#39af4c' =>'Light Green',
                    '#b2ce40' =>'Greenish',
                    '#6c2c8e' =>'Dark Purple',
                    '#913990' =>'Purple',
                    '#b989ba' =>'Lilac',
                    '#F934C5' =>'Dark Pink',
                    '#f3aebc' =>'Light Pink',
                    '#e81e25' =>'Red',
                    '#ed7043' =>'Peach',
                    '#f39f2b' =>'Orange',
                    '#ecba4b' =>'Light Orange',
                    '#fce92d' =>'Yellow',
                    '#f9eea9' =>'Cream',
                 
//                  Alternative Color Palette
//                    "#ffffff"=>'White',
//                    "#000000"=>'Black',
//                    "#333333"=>'Dary Gray',
//                    "#7bd148"=>'Green',
//                    "#5484ed"=>'Bold blue',
//                    "#a4bdfc"=>'Blue',
//                    "#46d6db"=>'Turquoise',
//                    "#7ae7bf"=>'Light green',
//                    "#51b749"=>'Bold green',
//                    "#fbd75b"=>'Yellow',
//                    "#ffb878"=>'Orange',
//                    "#ff887c"=>'Red',
//                    "#F934C5"=>'Pink',
//                    "#dc2127"=>'Bold red',
//                    "#dbadff"=>'Purple',
//                    "#e1e1e1"=>'Gray'
                        ),
            'preferred_choices' => array(),
            'empty_data'        => null,
            'empty_value'       => null,
            'error_bubbling'    => false,
            'compound'          => false,
            'include_jquery'    => false,
            'include_js'        => false,
            'include_js_constructor'=>true,
            'include_css'       => false,
            'picker'            => false,
            'placeholder'       => false
        ));

    }
{@inheritdoc}