public function getThemeOptionsExcluding($excludedColors = [])
    {
        $themeColors = $this->owner->config()->get('theme_colors');
        $options = [];

        foreach ($themeColors as $themeColor) {
            if (in_array($themeColor['CSSClass'], $excludedColors)) {
                continue;
            }

            $options[] = $themeColor;
        }

        return $options;
    }
public function getThemeOptionsExcluding($excludedColors = [])
    {
        $themeColors = $this->owner->config()->get('theme_colors');
        $options = [];

        foreach ($themeColors as $themeColor) {
            if (in_array($themeColor['CSSClass'], $excludedColors)) {
                continue;
            }

            $options[] = $themeColor;
        }

        return $options;
    }
public function getThemeOptionsExcluding ( $ excludedColors = [ ] ) { $ themeColors = $ this -> owner -> config ( ) -> get ( 'theme_colors' ) ; $ options = [ ] ; foreach ( $ themeColors as $ themeColor ) { if ( in_array ( $ themeColor [ 'CSSClass' ] , $ excludedColors ) ) { continue ; } $ options [ ] = $ themeColor ; } return $ options ; }
Returns theme_colors used for ColorPickerField.

@param  array  $excludedColors list of colours to exclude from the returned options
based on the theme colour's 'CSSClass' value
@return array
Returns theme_colors used for ColorPickerField .