Same name and namespace in other branches
- 7.x modules/simpletest/tests/themes/test_theme/template.php \test_theme_theme_test_alter_alter()
- 8.9.x core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_theme_test_alter_alter()
- 9 core/modules/system/tests/themes/test_theme/test_theme.theme \test_theme_theme_test_alter_alter()
Tests a theme implementing an alter hook.
The confusing function name here is due to this being an implementation of the alter hook invoked when the 'theme_test' module calls \Drupal::moduleHandler->alter('theme_test_alter').
File
- core/
modules/ system/ tests/ themes/ test_theme/ test_theme.theme, line 41 - Theme to help test the Twig engine.
Code
function test_theme_theme_test_alter_alter(&$data) {
$data = 'test_theme_theme_test_alter_alter was invoked';
}