LayoutTestThemeHooks.php
Namespace
Drupal\layout_test\HookFile
-
core/
modules/ system/ tests/ modules/ layout_test/ src/ Hook/ LayoutTestThemeHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\layout_test\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for layout_test.
*/
class LayoutTestThemeHooks {
/**
* Implements hook_preprocess_HOOK() for layout templates.
*/
public function templatePreprocessLayoutTest2col(&$variables) : void {
$variables['region_attributes']['left']->addClass('class-added-by-preprocess');
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
LayoutTestThemeHooks | Hook implementations for layout_test. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.