src/Forms/HTMLEditor/HTMLEditorConfig.php
public static function set_config($identifier, HTMLEditorConfig $config = null)
    {
        if ($config) {
            self::$configs[$identifier] = $config;
            self::$configs[$identifier]->setOption('editorIdentifier', $identifier);
        } else {
            unset(self::$configs[$identifier]);
        }
        return $config;
    }
public static function set_config($identifier, HTMLEditorConfig $config = null)
    {
        if ($config) {
            self::$configs[$identifier] = $config;
            self::$configs[$identifier]->setOption('editorIdentifier', $identifier);
        } else {
            unset(self::$configs[$identifier]);
        }
        return $config;
    }
public static function set_config ( $ identifier , HTMLEditorConfig $ config = null ) { if ( $ config ) { self :: $ configs [ $ identifier ] = $ config ; self :: $ configs [ $ identifier ] -> setOption ( 'editorIdentifier' , $ identifier ) ; } else { unset ( self :: $ configs [ $ identifier ] ) ; } return $ config ; }
Assign a new config, or clear existing, for the given identifier

@param string $identifier A specific identifier
@param HTMLEditorConfig $config Config to set, or null to clear
@return HTMLEditorConfig The assigned config
Assign a new config or clear existing for the given identifier