Registry

Defines the theme registry service.

@internal

Theme registry is expected to be used only internally since every hook_theme() implementation depends on the way this class is built. This class may get new features in minor releases so this class should be considered internal.

@todo Replace local $registry variables in methods with $this->registry.

Hierarchy

File

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

Namespace

Drupal\Core\Theme

Members

Name Modifiers Type Description
Registry::$cache protected property The cache backend to use for the complete theme registry data.
Registry::$initialized protected property Stores whether the registry was already initialized.
Registry::$lock protected property The lock backend that should be used.
Registry::$moduleHandler protected property The module handler to use to load modules.
Registry::$registry protected property The complete theme registry.
Registry::$root protected property The app root.
Registry::$runtimeRegistry protected property An array of incomplete, runtime theme registries, keyed by theme name.
Registry::$theme protected property The theme object representing the active theme for this registry.
Registry::$themeHandler protected property The theme handler.
Registry::$themeManager protected property The theme manager.
Registry::$themeName protected property The name of the theme for which to construct the registry, if given.
Registry::build protected function Builds the theme registry cache.
Registry::completeSuggestion protected function Completes the definition of the requested suggestion hook.
Registry::destruct public function Performs destruct operations. Overrides DestructableInterface::destruct
Registry::get public function Returns the complete theme registry from cache or rebuilds it.
Registry::getBaseHook public function Returns the base hook for a given hook suggestion.
Registry::getPath protected function Wraps drupal_get_path().
Registry::getPrefixGroupedUserFunctions public function Gets all user functions grouped by the word before the first underscore.
Registry::getRuntime public function Returns the incomplete, runtime theme registry.
Registry::init protected function Initializes a theme with a certain name.
Registry::postProcessExtension protected function Completes the theme registry adding discovered functions and hooks.
Registry::processExtension protected function Process a single implementation of hook_theme().
Registry::reset public function Invalidates theme registry caches.
Registry::setCache protected function Persists the theme registry in the cache backend.
Registry::setThemeManager public function Sets the theme manager.
Registry::__construct public function Constructs a \Drupal\Core\Theme\Registry object.
doc_Drupal
2016-10-29 09:37:12
Comments
Leave a Comment

Please login to continue.