layout_test.module in Drupal 10
Same filename and directory in other branches
Provides hook implementations for Layout Test.
File
core/modules/system/tests/modules/layout_test/layout_test.moduleView 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
Name | Description |
---|---|
template_preprocess_layout_test_2col | Implements hook_preprocess_HOOK() for layout templates. |