function test_theme_theme_registry_alter

Same name in other branches
  1. 8.9.x core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_theme_registry_alter()
  2. 10 core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_theme_registry_alter()
  3. 11.x core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_theme_registry_alter()

Implements hook_theme_registry_alter().

File

core/modules/system/tests/themes/test_theme/test_theme.theme, line 74

Code

function test_theme_theme_registry_alter(&$registry) {
    $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.