js_displace.module in Drupal 10
Functions to support testing Drupal.displace() JavaScript API.
File
core/modules/system/tests/modules/js_displace/js_displace.moduleView source
<?php
/**
* @file
* Functions to support testing Drupal.displace() JavaScript API.
*/
/**
* Implements hook_preprocess_html().
*/
function js_displace_preprocess_html(&$variables) {
$variables['#attached']['library'][] = 'core/drupal.displace';
}
Functions
Name | Description |
---|---|
js_displace_preprocess_html | Implements hook_preprocess_html(). |