Theme/ThemeHandler.php
private function _getThemes()
    {
        if ( is_null($this->_themes) ) {
            $config = $this->_getThemeConfig();
            $this->_themes = array();
            foreach ($config['themes'] as $identifier => $conf) {
                $t = new Theme();
                $t->setIdentifier($identifier);
                $t->setName($conf['name']);
                $t->setBasePath($conf['base_path']);
                $this->_themes[$identifier] = $t;
            }
            if ( count($this->_themes) == 0 ) {
                $t = new Theme();
                $t->setIdentifier('default');
                $t->setName('Default');
                $t->setBasePath('bundles/vincetadmin/bootstrap/default');
                $this->_themes['default'] = $t;
            }
        }
        return $this->_themes;
    }
private function _getThemes()
    {
        if ( is_null($this->_themes) ) {
            $config = $this->_getThemeConfig();
            $this->_themes = array();
            foreach ($config['themes'] as $identifier => $conf) {
                $t = new Theme();
                $t->setIdentifier($identifier);
                $t->setName($conf['name']);
                $t->setBasePath($conf['base_path']);
                $this->_themes[$identifier] = $t;
            }
            if ( count($this->_themes) == 0 ) {
                $t = new Theme();
                $t->setIdentifier('default');
                $t->setName('Default');
                $t->setBasePath('bundles/vincetadmin/bootstrap/default');
                $this->_themes['default'] = $t;
            }
        }
        return $this->_themes;
    }
private function _getThemes ( ) { if ( is_null ( $ this -> _themes ) ) { $ config = $ this -> _getThemeConfig ( ) ; $ this -> _themes = array ( ) ; foreach ( $ config [ 'themes' ] as $ identifier => $ conf ) { $ t = new Theme ( ) ; $ t -> setIdentifier ( $ identifier ) ; $ t -> setName ( $ conf [ 'name' ] ) ; $ t -> setBasePath ( $ conf [ 'base_path' ] ) ; $ this -> _themes [ $ identifier ] = $ t ; } if ( count ( $ this -> _themes ) == 0 ) { $ t = new Theme ( ) ; $ t -> setIdentifier ( 'default' ) ; $ t -> setName ( 'Default' ) ; $ t -> setBasePath ( 'bundles/vincetadmin/bootstrap/default' ) ; $ this -> _themes [ 'default' ] = $ t ; } } return $ this -> _themes ; }
Gets themes

@return array
Gets themes