function TwigThemeTestHooks::preprocessStatusMessages
Implements hook_preprocess_HOOK().
Attributes
#[Hook('preprocess_status_messages')]
File
-
core/
modules/ system/ tests/ modules/ twig_theme_test/ src/ Hook/ TwigThemeTestHooks.php, line 71
Class
- TwigThemeTestHooks
- Hook implementations for twig_theme_test.
Namespace
Drupal\twig_theme_test\HookCode
public function preprocessStatusMessages(array &$variables) : void {
$variables['attributes']['class'][] = 'custom-test-messages-class';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.