ThemeManager::setThemeRegistry

public ThemeManager::setThemeRegistry(Registry $theme_registry) Sets the theme registry. Parameters \Drupal\Core\Theme\Registry $theme_registry: The theme registry. Return value $this File core/lib/Drupal/Core/Theme/ThemeManager.php, line 86 Class ThemeManager Provides the default implementation of a theme manager. Namespace Drupal\Core\Theme Code public function setThemeRegistry(Registry $theme_registry) { $this->themeRegistry = $theme_registry; return $this; }

ThemeManager::setActiveTheme

public ThemeManager::setActiveTheme(ActiveTheme $active_theme) Sets the current active theme manually. Note: This method should not be used in common cases, just in special cases like tests. Parameters \Drupal\Core\Theme\ActiveTheme $active_theme: The new active theme. Return value $this Overrides ThemeManagerInterface::setActiveTheme File core/lib/Drupal/Core/Theme/ThemeManager.php, line 119 Class ThemeManager Provides the default implementation of a theme manager. Namespace Drupal\C

ThemeManager::initTheme

protected ThemeManager::initTheme(RouteMatchInterface $route_match = NULL) Initializes the active theme for a given route match. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. File core/lib/Drupal/Core/Theme/ThemeManager.php, line 396 Class ThemeManager Provides the default implementation of a theme manager. Namespace Drupal\Core\Theme Code protected function initTheme(RouteMatchInterface $route_match = NULL) { // Determine the active them

ThemeManager::hasActiveTheme

public ThemeManager::hasActiveTheme() Determines whether there is an active theme. Return value bool Overrides ThemeManagerInterface::hasActiveTheme File core/lib/Drupal/Core/Theme/ThemeManager.php, line 104 Class ThemeManager Provides the default implementation of a theme manager. Namespace Drupal\Core\Theme Code public function hasActiveTheme() { return isset($this->activeTheme); }

ThemeManager::resetActiveTheme

public ThemeManager::resetActiveTheme() Resets the current active theme. Note: This method should not be used in common cases, just in special cases like tests. Return value $this Overrides ThemeManagerInterface::resetActiveTheme File core/lib/Drupal/Core/Theme/ThemeManager.php, line 111 Class ThemeManager Provides the default implementation of a theme manager. Namespace Drupal\Core\Theme Code public function resetActiveTheme() { $this->activeTheme = NULL; return $this; }

ThemeManager::render

public ThemeManager::render($hook, array $variables) Generates themed output. See the Default theme implementations topic for details. Parameters string $hook: The name of the theme hook to call. array $variables: An associative array of theme variables. Return value string|\Drupal\Component\Render\MarkupInterface The rendered output, or a Markup object. Overrides ThemeManagerInterface::render File core/lib/Drupal/Core/Theme/ThemeManager.php, line 130 Class ThemeManager Provides the defa

ThemeManager::alterForTheme

public ThemeManager::alterForTheme(ActiveTheme $theme, $type, &$data, &$context1 = NULL, &$context2 = NULL) @todo Should we cache some of these information? Overrides ThemeManagerInterface::alterForTheme File core/lib/Drupal/Core/Theme/ThemeManager.php, line 414 Class ThemeManager Provides the default implementation of a theme manager. Namespace Drupal\Core\Theme Code public function alterForTheme(ActiveTheme $theme, $type, &$data, &$context1 = NULL, &$context2

ThemeManager::alter

public ThemeManager::alter($type, &$data, &$context1 = NULL, &$context2 = NULL) Passes alterable variables to specific $theme_TYPE_alter() implementations. Executes an alter hook on the current theme. It also invokes alter hooks for all base themes. $theme specifies the theme name of the active theme and all its base themes. This dispatch function hands off the passed-in variables to type-specific $theme_TYPE_alter() implementations in the active theme. It ensures a consistent inter

ThemeManager::$themeRegistry

The theme registry used to render an output. Type: \Drupal\Core\Theme\Registry File core/lib/Drupal/Core/Theme/ThemeManager.php, line 29 Class ThemeManager Provides the default implementation of a theme manager. Namespace Drupal\Core\Theme Code protected $themeRegistry;

ThemeManager::getActiveTheme

public ThemeManager::getActiveTheme(RouteMatchInterface $route_match = NULL) Returns the active theme object. Return value \Drupal\Core\Theme\ActiveTheme Overrides ThemeManagerInterface::getActiveTheme File core/lib/Drupal/Core/Theme/ThemeManager.php, line 94 Class ThemeManager Provides the default implementation of a theme manager. Namespace Drupal\Core\Theme Code public function getActiveTheme(RouteMatchInterface $route_match = NULL) { if (!isset($this->activeTheme)) { $thi