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