public function getConfigArray($name)
    {
        $result = array_get($this->getConfig(), $name, []);

        if (is_string($result)) {
            $fileName = File::symbolizePath($result);

            if (File::isLocalPath($fileName)) {
                $path = $fileName;
            }
            else {
                $path = $this->getPath().'/'.$result;
            }

            if (!File::exists($path)) {
                throw new ApplicationException('Path does not exist: '.$path);
            }

            $result = Yaml::parseFile($path);
        }

        return (array) $result;
    }
public function getConfigArray($name)
    {
        $result = array_get($this->getConfig(), $name, []);

        if (is_string($result)) {
            $fileName = File::symbolizePath($result);

            if (File::isLocalPath($fileName)) {
                $path = $fileName;
            }
            else {
                $path = $this->getPath().'/'.$result;
            }

            if (!File::exists($path)) {
                throw new ApplicationException('Path does not exist: '.$path);
            }

            $result = Yaml::parseFile($path);
        }

        return (array) $result;
    }
public function getConfigArray ( $ name ) { $ result = array_get ( $ this -> getConfig ( ) , $ name , [ ] ) ; if ( is_string ( $ result ) ) { $ fileName = File :: symbolizePath ( $ result ) ; if ( File :: isLocalPath ( $ fileName ) ) { $ path = $ fileName ; } else { $ path = $ this -> getPath ( ) . '/' . $ result ; } if ( ! File :: exists ( $ path ) ) { throw new ApplicationException ( 'Path does not exist: ' . $ path ) ; } $ result = Yaml :: parseFile ( $ path ) ; } return ( array ) $ result ; }
Returns an array value from the theme configuration file by its name.
If the value is a string, it is treated as a YAML file and loaded.
@param string $name Specifies the configuration parameter name.
@return array
Returns an array value from the theme configuration file by its name . If the value is a string it is treated as a YAML file and loaded .