W3cubDocs

/Drupal 8

class ThemeManager

Provides the default implementation of a theme manager.

Hierarchy

File

core/lib/Drupal/Core/Theme/ThemeManager.php, line 15

Namespace

Drupal\Core\Theme

Members

Name Modifiers Type Description
ThemeManager::$activeTheme protected property Contains the current active theme.
ThemeManager::$moduleHandler protected property The module handler.
ThemeManager::$root protected property The app root.
ThemeManager::$themeInitialization protected property The theme initialization.
ThemeManager::$themeNegotiator protected property The theme negotiator.
ThemeManager::$themeRegistry protected property The theme registry used to render an output.
ThemeManager::alter public function Passes alterable variables to specific $theme_TYPE_alter() implementations. Overrides ThemeManagerInterface::alter
ThemeManager::alterForTheme public function @todo Should we cache some of these information? Overrides ThemeManagerInterface::alterForTheme
ThemeManager::getActiveTheme public function Returns the active theme object. Overrides ThemeManagerInterface::getActiveTheme
ThemeManager::hasActiveTheme public function Determines whether there is an active theme. Overrides ThemeManagerInterface::hasActiveTheme
ThemeManager::initTheme protected function Initializes the active theme for a given route match.
ThemeManager::render public function Generates themed output. Overrides ThemeManagerInterface::render
ThemeManager::resetActiveTheme public function Resets the current active theme. Overrides ThemeManagerInterface::resetActiveTheme
ThemeManager::setActiveTheme public function Sets the current active theme manually. Overrides ThemeManagerInterface::setActiveTheme
ThemeManager::setThemeRegistry public function Sets the theme registry.
ThemeManager::__construct public function Constructs a new ThemeManager object.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Theme!ThemeManager.php/class/ThemeManager/8.1.x