function theme_test_theme_registry_alter in Drupal 10
Implements hook_theme_registry_alter().
File
- core/
modules/ system/ tests/ modules/ theme_test/ theme_test.module, line 71 - Test module.
Code
function theme_test_theme_registry_alter(&$registry) {
$registry['theme_test_preprocess_callback']['preprocess functions'][] = [
'\\Drupal\\theme_test\\ThemeTestPreprocess',
'preprocess',
];
}