Sets the theme(s) to be used for rendering forms

@param string|string[] $themes  The theme(s). For example 'MyBundle:Layout:my_theme.html.twig'

@return self
545813
public function setFormTheme($themes)
    {
        $themes = is_array($themes) ? $themes : [$themes];
        $this->formThemes = array_merge($this->formThemes, $themes);

        return $this;
    }
1331920
public static function registerTheme($theme)
    {
        $themes = (array) $theme;
        array_walk($themes, function (&$name) {
            $name .= '.js';
        });
        static::$_themeJsFiles = array_unique(array_merge(static::$_themeJsFiles, $themes));
        if (static::$_themeJsFiles) {
            ThemeAsset::register(Yii::$app->getView())->js = static::$_themeJsFiles;
        }
    }
1219235
public function setDomains($domains)
    {
        if (is_array($domains)) {
            foreach ($domains as $domain) {
                $this->setDomains($domain);
            }
            return $this;
        }

        $this->domains[] = $domains;

        return $this;
    }
1113246
public function setTemplateStyle($style = null)
    {
        if (null == $style) {
            $style = GEMS_PROJECT_NAME;
        }
        $this->setHtmlTemplateFile(APPLICATION_PATH . '/configs/email/' . $style . '.html');

        return $this;
    }
52356
public function set($themeName)
    {
        if ($this->exists($themeName)) {
            $theme = $this->find($themeName);
        } else {
            $theme = new Theme($themeName);
        }

        $this->activeTheme = $theme;

        // Get theme view paths
        $paths = $theme->getViewPaths();

        // fall-back to default paths (set in views.php config file)
        foreach ($this->laravelViewsPath as $path) {
            if (!in_array($path, $paths)) {
                $paths[] = $path;
            }
        }

        config(['view.paths' => $paths]);

        $themeViewFinder = app('view.finder');
        $themeViewFinder->setPaths($paths);
        Event::dispatch('igaster.laravel-theme.change', $theme);
        return $theme;
    }
44787
public function setTheme($theme, array $mods = [], array $options = [], array $menus = [], array $sidebars = [])
    {
        $this->setOptions($options);
        switch_theme($theme);
        $this->setThemeMods($mods);
        $this->createMenus($menus);
        $this->setupSidebars($sidebars);
    }
175914
public function setThemeByPath($path, $theme = null, $wrapper = FILENAME_THEMES_VIEW)
    {
        $l = Router::get();
        $l->setThemeByRoute($path, $theme, $wrapper);
    }
148389
public function setBars($bars)
    {
        if (is_string($bars) && strlen($bars) > 1) {
            $this->bars = $bars;
        }

        return $this;
    }
30520
public function setTheme(Theme $theme = null)
    {
        $theme_path = null;
        if ($theme) $theme_path = THEME_DIR.'/'.$theme->name;
        self::getDbConnection()->update('dir_data',array('templateDir'=>$theme_path),array('id'=>$this->id));
		$this->updateCache();
		return $this;
    }
505125
public function setRoles(array $roles)
    {
        $this->roles->clear();
        foreach ($roles as $role) {
            $this->addRole($role);
        }

        return $this;
    }
206890
public function setTheme($theme)
    {
        if (!is_null($this->theme)) {
            $this->resolved && $this->resetViewPaths();

            $this->dispatcher->fire("antares.theme.unset: {$this->theme}");
            $this->dispatcher->fire(new ThemeUnset($this->theme));
        }


        $this->theme = $theme;
        $this->dispatcher->fire("antares.theme.set: {$this->theme}");
        $this->dispatcher->fire(new ThemeSet($this->theme));

        if ($this->resolved) {
            $this->resolved = false;
            $this->resolving();
        }
    }
696836
public function setTheme($theme)
    {
        if (!self::isValidTheme($theme)) {
            throw new Exception(
                'Theme ' . $theme . ' is not valid. Please use one of [' . join(', ', self::$themes) . ']'
            );
        }

        $this->theme = $theme;
    }
1220120
public function theme($theme)
    {
        if ($this->isPlaylist() && $theme == static::THEME_DARK) {
            throw new AudioPlayerException('Playlists can not use the Dark Theme.  YouTube limitation.');
        }
        if ($theme != static::THEME_LIGHT && $theme != static::THEME_DARK) {
            throw new AudioPlayerException('Invalid Theme');
        }
        $this->theme = $theme;

        return $this;
    }
394470
public function setButtons(array $buttons): self
    {
        $this->isValidArray($buttons, 1);

        $this->buttons = $buttons;

        return $this;
    }
77025
public function load(string $path): ThemeManager
    {
        $this->setThemeDirectory();
        $this->setThemeConstants();
        $this->loadThemeConfiguration($path);
        $this->setThemeAutoloading();

        return $this;
    }
1149750
public static function add_themes($themes = [])
    {
        $currentThemes = SSViewer::get_themes();
        $finalThemes = array_merge($themes, $currentThemes);
        // array_values is used to ensure sequential array keys as array_unique can leave gaps
        static::set_themes(array_values(array_unique($finalThemes)));
    }
677777
public static function registerTheme($theme)
    {
        if (in_array($theme, self::$_registeredThemes)) {
            throw new Exception(__d('wasabi_cms', 'The Theme "{0}" is already registered.', $theme));
        }

        self::$_registeredThemes[] = $theme;
    }