Newscoop\Service\Implementation\ThemeServiceLocalFileSystem::loadThemes PHP Метод

loadThemes() защищенный Метод

Loads the provided theme configuration files.
protected loadThemes ( array $themesConfigs ) : array
$themesConfigs array The array containing as key the ide of the theme config (index) and as a value the relative path of the theme configuration XML file, *(not null not empty).
Результат array The array containing all the loaded themes.
    protected function loadThemes(array $themesConfigs)
    {
        $themes = array();
        foreach ($themesConfigs as $id => $rpath) {
            $path = $this->toFullPath($rpath);
            if (file_exists($path)) {
                $xml = $this->loadXML($path);
                if ($xml != NULL) {
                    $theme = $this->loadTheme($xml, $id, $rpath);
                    if ($theme != NULL) {
                        $themes[] = $theme;
                    }
                }
            }
        }
        return $themes;
    }