original_string: public function getConfig()
      {
          if ($this->configCache !== null) {
              return $this->configCache;
          }
  
          $path = $this->getPath().'/theme.yaml';
          if (!File::exists($path)) {
              return $this->configCache = [];
          }
  
          $config = Yaml::parseFile($path);
  
          /**
           * @event cms.theme.extendConfig
           * Extend basic theme configuration supplied by the theme by returning an array.
           *
           * Note if planning on extending form fields, use the `cms.theme.extendFormConfig`
           * event instead.
           *
           * Example usage:
           *
           *     Event::listen('cms.theme.extendConfig', function ($themeCode, &$config) {
           *          $config['name'] = 'October Theme';
           *          $config['description'] = 'Another great theme from October CMS';
           *     });
           *
           */
          Event::fire('cms.theme.extendConfig', [$this->getDirName(), &$config]);
  
          return $this->configCache = $config;
      }
code: public function getConfig()
      {
          if ($this->configCache !== null) {
              return $this->configCache;
          }
  
          $path = $this->getPath().'/theme.yaml';
          if (!File::exists($path)) {
              return $this->configCache = [];
          }
  
          $config = Yaml::parseFile($path);
  
          /**
           * @event cms.theme.extendConfig
           * Extend basic theme configuration supplied by the theme by returning an array.
           *
           * Note if planning on extending form fields, use the `cms.theme.extendFormConfig`
           * event instead.
           *
           * Example usage:
           *
           *     Event::listen('cms.theme.extendConfig', function ($themeCode, &$config) {
           *          $config['name'] = 'October Theme';
           *          $config['description'] = 'Another great theme from October CMS';
           *     });
           *
           */
          Event::fire('cms.theme.extendConfig', [$this->getDirName(), &$config]);
  
          return $this->configCache = $config;
      }
code_tokens: public function getConfig ( ) { if ( $ this -> configCache !== null ) { return $ this -> configCache ; } $ path = $ this -> getPath ( ) . '/theme.yaml' ; if ( ! File :: exists ( $ path ) ) { return $ this -> configCache = [ ] ; } $ config = Yaml :: parseFile ( $ path ) ; /**
           * @event cms.theme.extendConfig
           * Extend basic theme configuration supplied by the theme by returning an array.
           *
           * Note if planning on extending form fields, use the `cms.theme.extendFormConfig`
           * event instead.
           *
           * Example usage:
           *
           *     Event::listen('cms.theme.extendConfig', function ($themeCode, &$config) {
           *          $config['name'] = 'October Theme';
           *          $config['description'] = 'Another great theme from October CMS';
           *     });
           *
           */ Event :: fire ( 'cms.theme.extendConfig' , [ $ this -> getDirName ( ) , & $ config ] ) ; return $ this -> configCache = $ config ; }
docstring: Reads the theme.yaml file and returns the theme configuration values.
  @return array Returns the parsed configuration file values.
docstring_tokens: Reads the theme . yaml file and returns the theme configuration values .