theme_region_test.module in Zircon Profile 8
Same filename and directory in other branches
Provides hook implementations for testing purposes.
File
core/modules/system/tests/modules/theme_region_test/theme_region_test.moduleView source
<?php
/**
* @file
* Provides hook implementations for testing purposes.
*/
/**
* Implements hook_preprocess_HOOK() for region templates.
*/
function theme_region_test_preprocess_region(&$variables) {
if ($variables['region'] == 'sidebar_first') {
$variables['attributes']['class'][] = 'new_class';
}
}
Functions
Name | Description |
---|---|
theme_region_test_preprocess_region | Implements hook_preprocess_HOOK() for region templates. |