function TestThemeHooks::themeTestAlterAlter
Implements hook_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').
Attributes
#[Hook('theme_test_alter_alter')]
File
-
core/
modules/ system/ tests/ themes/ test_theme/ src/ Hook/ TestThemeHooks.php, line 58
Class
- TestThemeHooks
- Hook implementations for test_theme.
Namespace
Drupal\test_theme\HookCode
public function themeTestAlterAlter(string &$data) : void {
$data = 'test_theme_theme_test_alter_alter was invoked';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.