W3cubDocs

/Drupal 8

public function Registry::__construct

public Registry::__construct($root, CacheBackendInterface $cache, LockBackendInterface $lock, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, ThemeInitializationInterface $theme_initialization, $theme_name = NULL)

Constructs a \Drupal\Core\Theme\Registry object.

Parameters

string $root: The app root.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend interface to use for the complete theme registry data.

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to use to load modules.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

\Drupal\Core\Theme\ThemeInitializationInterface $theme_initialization: The theme initialization.

string $theme_name: (optional) The name of the theme for which to construct the registry.

File

core/lib/Drupal/Core/Theme/Registry.php, line 161

Class

Registry
Defines the theme registry service.

Namespace

Drupal\Core\Theme

Code

public function __construct($root, CacheBackendInterface $cache, LockBackendInterface $lock, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, ThemeInitializationInterface $theme_initialization, $theme_name = NULL) {
  $this->root = $root;
  $this->cache = $cache;
  $this->lock = $lock;
  $this->moduleHandler = $module_handler;
  $this->themeName = $theme_name;
  $this->themeHandler = $theme_handler;
  $this->themeInitialization = $theme_initialization;
}

© 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!Registry.php/function/Registry::__construct/8.1.x