theme_region_test.module
Same filename in other branches
File
-
core/
modules/ system/ tests/ modules/ theme_region_test/ theme_region_test.module
View source
<?php
/**
* @file
* Provides hook implementations for testing purposes.
*/
declare (strict_types=1);
/**
* 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
Title | Deprecated | Summary |
---|---|---|
theme_region_test_preprocess_region | Implements hook_preprocess_HOOK() for region templates. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.