function ThemeRegistry::initializeRegistry

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::initializeRegistry()
  2. 9 core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::initializeRegistry()

Initializes the full theme registry.

Return value

An array with the keys of the full theme registry, but the values initialized to NULL.

File

includes/theme.inc, line 410

Class

ThemeRegistry
Builds the run-time theme registry.

Code

function initializeRegistry() {
  $this->completeRegistry = theme_get_registry();
  return array_fill_keys(array_keys($this->completeRegistry), NULL);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.