framework/RedKiteCms/Rendering/Controller/Theme/ShowThemeController.php
public function show(array $options)
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $this->options = $resolver->resolve($options);
        $templateAssets = $this->options["template_assets"];
        $templateAssets->boot('dashboard');

        $themes = array();
        $themePlugins = $this->options["plugin_manager"]->getThemePlugins();
        foreach ($themePlugins as $themePlugin) {
            if ($themePlugin->getName() == $this->options["configuration_handler"]->theme()) {
                $themes["active_theme"] = $themePlugin;

                continue;
            }

            $themes["available_themes"][] = $themePlugin;
        }

        $template = 'RedKiteCms/Resources/views/Dashboard/themes.html.twig';

        return $options["twig"]->render(
            $template,
            array(
                "template_assets_manager" => $templateAssets,
                "themes" => $themes,
                "isTheme" => $this->options["configuration_handler"]->isTheme(),
                "version" => ConfigurationHandler::getVersion(),
            )
        );
    }
public function show(array $options)
    {
        $resolver = new OptionsResolver();
        $this->configureOptions($resolver);
        $this->options = $resolver->resolve($options);
        $templateAssets = $this->options["template_assets"];
        $templateAssets->boot('dashboard');

        $themes = array();
        $themePlugins = $this->options["plugin_manager"]->getThemePlugins();
        foreach ($themePlugins as $themePlugin) {
            if ($themePlugin->getName() == $this->options["configuration_handler"]->theme()) {
                $themes["active_theme"] = $themePlugin;

                continue;
            }

            $themes["available_themes"][] = $themePlugin;
        }

        $template = 'RedKiteCms/Resources/views/Dashboard/themes.html.twig';

        return $options["twig"]->render(
            $template,
            array(
                "template_assets_manager" => $templateAssets,
                "themes" => $themes,
                "isTheme" => $this->options["configuration_handler"]->isTheme(),
                "version" => ConfigurationHandler::getVersion(),
            )
        );
    }
Implements the action to show the themes dashboard interface
@param array $options

@return \Symfony\Component\HttpFoundation\Response