function template_preprocess_layout_test_2col
Same name and namespace in other branches
- 8.9.x core/modules/system/tests/modules/layout_test/layout_test.module \template_preprocess_layout_test_2col()
- 10 core/modules/system/tests/modules/layout_test/layout_test.module \template_preprocess_layout_test_2col()
- 11.x core/modules/system/tests/modules/layout_test/layout_test.module \template_preprocess_layout_test_2col()
Implements hook_preprocess_HOOK() for layout templates.
File
-
core/
modules/ system/ tests/ modules/ layout_test/ layout_test.module, line 11
Code
function template_preprocess_layout_test_2col(&$variables) {
$variables['region_attributes']['left']->addClass('class-added-by-preprocess');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.