function LayoutTestThemeHooks::templatePreprocessLayoutTest2col

Implements hook_preprocess_HOOK() for layout templates.

Attributes

#[Hook('preprocess_layout_test_2col')]

File

core/modules/system/tests/modules/layout_test/src/Hook/LayoutTestThemeHooks.php, line 17

Class

LayoutTestThemeHooks
Hook implementations for layout_test.

Namespace

Drupal\layout_test\Hook

Code

public function templatePreprocessLayoutTest2col(&$variables) : void {
  $variables['region_attributes']['left']->addClass('class-added-by-preprocess');
}

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