function ThemeTestHooks::themeRegistryAlter

Implements hook_theme_registry_alter().

File

core/modules/system/tests/modules/theme_test/src/Hook/ThemeTestHooks.php, line 62

Class

ThemeTestHooks
Hook implementations for theme_test.

Namespace

Drupal\theme_test\Hook

Code

public function themeRegistryAlter(&$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.