function TestThemeHooks::themeRegistryAlter
Implements hook_theme_registry_alter().
Attributes
#[Hook('theme_registry_alter')]
File
-
core/
modules/ system/ tests/ themes/ test_theme/ src/ Hook/ TestThemeHooks.php, line 105
Class
- TestThemeHooks
- Hook implementations for test_theme.
Namespace
Drupal\test_theme\HookCode
public function themeRegistryAlter(array &$registry) : void {
$registry['theme_test_template_test']['variables']['additional'] = 'value';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.