system/src/Grav/Common/Plugin.php
/**
     * Persists to disk the plugin parameters currently stored in the Grav Config object
     *
     * @param string $plugin_name The name of the plugin whose config it should store.
     *
     * @return true
     */
Persists to disk the plugin parameters currently stored in the Grav Config object
@param string $plugin_name The name of the plugin whose config it should store.

@return true
Persists to disk the plugin parameters currently stored in the Grav Config object @param string $plugin_name The name of the plugin whose config it should store . @return true
public static function saveConfig($plugin_name)
    {
        if (!$plugin_name) {
            return false;
        }
        $grav = Grav::instance();
        $locator = $grav['locator'];
        $filename = 'config://plugins/' . $plugin_name . '.yaml';
        $file = YamlFile::instance($locator->findResource($filename, true, true));
        $content = $grav['config']->get('plugins.' . $plugin_name);
        $file->save($content);
        $file->free();
        return true;
    }
public static function saveConfig ( $ plugin_name ) { if ( ! $ plugin_name ) { return false ; } $ grav = Grav :: instance ( ) ; $ locator = $ grav [ 'locator' ] ; $ filename = 'config://plugins/' . $ plugin_name . '.yaml' ; $ file = YamlFile :: instance ( $ locator -> findResource ( $ filename , true , true ) ) ; $ content = $ grav [ 'config' ] -> get ( 'plugins.' . $ plugin_name ) ; $ file -> save ( $ content ) ; $ file -> free ( ) ; return true ; }
Persists to disk the plugin parameters currently stored in the Grav Config object
 @param string $plugin_name The name of the plugin whose config it should store.
Persists to disk the plugin parameters currently stored in the Grav Config object @param string $plugin_name The name of the plugin whose config it should store .