function theme_test_theme_registry_alter
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_theme_registry_alter()
- 11.x core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_theme_registry_alter()
Implements hook_theme_registry_alter().
File
-
core/
modules/ system/ tests/ modules/ theme_test/ theme_test.module, line 99
Code
function theme_test_theme_registry_alter(&$registry) {
$registry['theme_test_preprocess_callback']['preprocess functions'][] = [
'\\Drupal\\theme_test\\ThemeTestPreprocess',
'preprocess',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.