public static function get_extra_config($class)
    {
        $config = Config::inst();
        $classConfig = $config->get($class, null, Config::EXCLUDE_EXTRA_SOURCES);
        $extensionConfig = $config->get(static::class);
        $extraConfig = [];

        foreach (static::CONFIG_SETTINGS_WITH_DEFAULTS as $setting) {
            if (isset($classConfig[$setting]) && !is_array($extensionConfig[$setting])) {
                $extraConfig[$setting] = $classConfig[$setting];
            } else {
                $extraConfig[$setting] = $extensionConfig[$setting];
            }
        }

        return $extraConfig;
    }
public static function get_extra_config($class)
    {
        $config = Config::inst();
        $classConfig = $config->get($class, null, Config::EXCLUDE_EXTRA_SOURCES);
        $extensionConfig = $config->get(static::class);
        $extraConfig = [];

        foreach (static::CONFIG_SETTINGS_WITH_DEFAULTS as $setting) {
            if (isset($classConfig[$setting]) && !is_array($extensionConfig[$setting])) {
                $extraConfig[$setting] = $classConfig[$setting];
            } else {
                $extraConfig[$setting] = $extensionConfig[$setting];
            }
        }

        return $extraConfig;
    }
public static function get_extra_config ( $ class ) { $ config = Config :: inst ( ) ; $ classConfig = $ config -> get ( $ class , null , Config :: EXCLUDE_EXTRA_SOURCES ) ; $ extensionConfig = $ config -> get ( static :: class ) ; $ extraConfig = [ ] ; foreach ( static :: CONFIG_SETTINGS_WITH_DEFAULTS as $ setting ) { if ( isset ( $ classConfig [ $ setting ] ) && ! is_array ( $ extensionConfig [ $ setting ] ) ) { $ extraConfig [ $ setting ] = $ classConfig [ $ setting ] ; } else { $ extraConfig [ $ setting ] = $ extensionConfig [ $ setting ] ; } } return $ extraConfig ; }
Generate extra config for a class, letting it override the concrete extension's config settings.
@param $class
@return array
Generate extra config for a class letting it override the concrete extension s config settings .