Registry::getRuntime

public Registry::getRuntime() Returns the incomplete, runtime theme registry. Return value \Drupal\Core\Utility\ThemeRegistry A shared instance of the ThemeRegistry class, provides an ArrayObject that allows it to be accessed with array syntax and isset(), and is more lightweight than the full registry. File core/lib/Drupal/Core/Theme/Registry.php, line 239 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code public function getRuntime() { $this->in

Registry::getPrefixGroupedUserFunctions

public Registry::getPrefixGroupedUserFunctions() Gets all user functions grouped by the word before the first underscore. Return value array Functions grouped by the first prefix. File core/lib/Drupal/Core/Theme/Registry.php, line 750 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code public function getPrefixGroupedUserFunctions() { $functions = get_defined_functions(); $grouped_functions = []; // Splitting user defined functions into groups by

Registry::getPath

protected Registry::getPath($module) Wraps drupal_get_path(). Parameters string $module: The name of the item for which the path is requested. Return value string File core/lib/Drupal/Core/Theme/Registry.php, line 771 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code protected function getPath($module) { return drupal_get_path('module', $module); }

Registry::getBaseHook

public Registry::getBaseHook($hook) Returns the base hook for a given hook suggestion. Parameters string $hook: The name of a theme hook whose base hook to find. Return value string|false The name of the base hook or FALSE. File core/lib/Drupal/Core/Theme/Registry.php, line 263 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code public function getBaseHook($hook) { $this->init($this->themeName); $base_hook = $hook; // Iteratively strip ever

Registry::get

public Registry::get() Returns the complete theme registry from cache or rebuilds it. Return value array The complete theme registry data array. See also Registry::$registry File core/lib/Drupal/Core/Theme/Registry.php, line 213 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code public function get() { $this->init($this->themeName); if (isset($this->registry[$this->theme->getName()])) { return $this->registry[$this->theme-

Registry::destruct

public Registry::destruct() Performs destruct operations. Overrides DestructableInterface::destruct File core/lib/Drupal/Core/Theme/Registry.php, line 738 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code public function destruct() { foreach ($this->runtimeRegistry as $runtime_registry) { $runtime_registry->destruct(); } }

Registry::completeSuggestion

protected Registry::completeSuggestion($hook, array &$cache) Completes the definition of the requested suggestion hook. Parameters string $hook: The name of the suggestion hook to complete. array $cache: The theme registry, as documented in \Drupal\Core\Theme\Registry::processExtension(). File core/lib/Drupal/Core/Theme/Registry.php, line 596 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code protected function completeSuggestion($hook, array &

Registry::build

protected Registry::build() Builds the theme registry cache. Theme hook definitions are collected in the following order: Modules Base theme engines Base themes Theme engine Theme All theme hook definitions are essentially just collated and merged in the above order. However, various extension-specific default values and customizations are required; e.g., to record the effective file path for theme template. Therefore, this method first collects all extensions per type, and then dispatches th

Registry::$themeName

The name of the theme for which to construct the registry, if given. Type: string|null File core/lib/Drupal/Core/Theme/Registry.php, line 120 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code protected $themeName;

Registry::$themeManager

The theme manager. Type: \Drupal\Core\Theme\ThemeManagerInterface File core/lib/Drupal/Core/Theme/Registry.php, line 141 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code protected $themeManager;