class LayoutTestThemeHooks

Hook implementations for layout_test.

Hierarchy

Expanded class hierarchy of LayoutTestThemeHooks

File

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

Namespace

Drupal\layout_test\Hook
View source
class LayoutTestThemeHooks {
  
  /**
   * Implements hook_preprocess_HOOK() for layout templates.
   */
  public function templatePreprocessLayoutTest2col(&$variables) : void {
    $variables['region_attributes']['left']->addClass('class-added-by-preprocess');
  }

}

Members

Title Sort descending Modifiers Object type Summary
LayoutTestThemeHooks::templatePreprocessLayoutTest2col public function 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.