js_displace.module

Same filename in other branches
  1. 11.x core/modules/system/tests/modules/js_displace/js_displace.module

Functions to support testing Drupal.displace() JavaScript API.

File

core/modules/system/tests/modules/js_displace/js_displace.module

View 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

Title Deprecated Summary
js_displace_preprocess_html Implements hook_preprocess_html().

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