layout_test.module

Same filename in other branches
  1. 9 core/modules/system/tests/modules/layout_test/layout_test.module
  2. 10 core/modules/system/tests/modules/layout_test/layout_test.module
  3. 11.x core/modules/system/tests/modules/layout_test/layout_test.module

Provides hook implementations for Layout Test.

File

core/modules/system/tests/modules/layout_test/layout_test.module

View source
<?php


/**
 * @file
 * Provides hook implementations for Layout Test.
 */

/**
 * Implements hook_preprocess_HOOK() for layout templates.
 */
function template_preprocess_layout_test_2col(&$variables) {
    $variables['region_attributes']['left']->addClass('class-added-by-preprocess');
}

Functions

Title Deprecated Summary
template_preprocess_layout_test_2col Implements hook_preprocess_HOOK() for layout templates.

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