public function ThemeRegistry::initializeRegistry in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::initializeRegistry()
- 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.
2 calls to ThemeRegistry::initializeRegistry()
- ThemeRegistry::updateCache in core/
lib/ Drupal/ Core/ Utility/ ThemeRegistry.php - Writes a value to the persistent cache immediately.
- ThemeRegistry::__construct in core/
lib/ Drupal/ Core/ Utility/ ThemeRegistry.php - Constructs a ThemeRegistry object.
File
- core/
lib/ Drupal/ Core/ Utility/ ThemeRegistry.php, line 86
Class
- ThemeRegistry
- Builds the run-time theme registry.
Namespace
Drupal\Core\UtilityCode
public function initializeRegistry() {
// @todo DIC this.
$this->completeRegistry = \Drupal::service('theme.registry')
->get();
return array_fill_keys(array_keys($this->completeRegistry), NULL);
}