function theme_test_preprocess_html

Same name in other branches
  1. 9 core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_preprocess_html()
  2. 8.9.x core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_preprocess_html()
  3. 10 core/modules/system/tests/modules/theme_test/theme_test.module \theme_test_preprocess_html()

Implements hook_preprocess_HOOK() for HTML document templates.

File

core/modules/system/tests/modules/theme_test/theme_test.module, line 108

Code

function theme_test_preprocess_html(&$variables) {
    $variables['html_attributes']['theme_test_html_attribute'] = 'theme test html attribute value';
    $variables['attributes']['theme_test_body_attribute'] = 'theme test body attribute value';
    $variables['attributes']['theme_test_page_variable'] = 'Page variable is an array.';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.