public function getThemeConfig($theme)
    {
        $themesConfig = $this->getThemesConfig();

        if (!empty($themesConfig[$theme])) {
            return $themesConfig[$theme];
        } elseif (!empty($themesConfig['generic'])) {
            return $themesConfig['generic'];
        }

        throw new RuntimeException(
            'No theme config found for ' . $theme
            . ' and no default theme found'
        );
    }
public function getThemeConfig($theme)
    {
        $themesConfig = $this->getThemesConfig();

        if (!empty($themesConfig[$theme])) {
            return $themesConfig[$theme];
        } elseif (!empty($themesConfig['generic'])) {
            return $themesConfig['generic'];
        }

        throw new RuntimeException(
            'No theme config found for ' . $theme
            . ' and no default theme found'
        );
    }
public function getThemeConfig ( $ theme ) { $ themesConfig = $ this -> getThemesConfig ( ) ; if ( ! empty ( $ themesConfig [ $ theme ] ) ) { return $ themesConfig [ $ theme ] ; } elseif ( ! empty ( $ themesConfig [ 'generic' ] ) ) { return $ themesConfig [ 'generic' ] ; } throw new RuntimeException ( 'No theme config found for ' . $ theme . ' and no default theme found' ) ; }
Get a themes config

@param string $theme Theme name to search for

@return array
@throws \Rcm\Exception\RuntimeException
Get a themes config