function JsDisplaceThemeHooks::preprocessHtml

Implements hook_preprocess_HOOK().

Attributes

#[Hook('preprocess_html')]

File

core/modules/system/tests/modules/js_displace/src/Hook/JsDisplaceThemeHooks.php, line 17

Class

JsDisplaceThemeHooks
Theme hook implementations for js_displace module.

Namespace

Drupal\js_displace\Hook

Code

public function preprocessHtml(&$variables) : void {
  $variables['#attached']['library'][] = 'core/drupal.displace';
}

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