function twig_theme_test_preprocess_status_messages in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module \twig_theme_test_preprocess_status_messages()
Implements template_preprocess_status_messages().
File
- core/
modules/ system/ tests/ modules/ twig_theme_test/ twig_theme_test.module, line 125 - Test module.
Code
function twig_theme_test_preprocess_status_messages(&$variables) {
$variables['attributes']['class'][] = 'custom-test-messages-class';
}