function twig_theme_test_preprocess_status_messages

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module \twig_theme_test_preprocess_status_messages()
  2. 8.9.x core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module \twig_theme_test_preprocess_status_messages()
  3. 10 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 129

Code

function twig_theme_test_preprocess_status_messages(&$variables) {
    $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.