JsDisplaceThemeHooks.php
Namespace
Drupal\js_displace\HookFile
-
core/
modules/ system/ tests/ modules/ js_displace/ src/ Hook/ JsDisplaceThemeHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\js_displace\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Theme hook implementations for js_displace module.
*/
class JsDisplaceThemeHooks {
/**
* Implements hook_preprocess_HOOK().
*/
public function preprocessHtml(&$variables) : void {
$variables['#attached']['library'][] = 'core/drupal.displace';
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
JsDisplaceThemeHooks | Theme hook implementations for js_displace module. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.