You are here

theme_region_test.module in Zircon Profile 8

Provides hook implementations for testing purposes.

File

core/modules/system/tests/modules/theme_region_test/theme_region_test.module
View 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

Namesort descending Description
theme_region_test_preprocess_region Implements hook_preprocess_HOOK() for region templates.