W3cubDocs

/Drupal 8

public function 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;
}

© 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/function/ThemeManager::setThemeRegistry/8.1.x