jquery_keyevent_polyfill_test.module

Same filename in other branches
  1. 9 core/modules/system/tests/modules/jquery_keyevent_polyfilll_test/jquery_keyevent_polyfill_test.module
  2. 11.x core/modules/system/tests/modules/jquery_keyevent_polyfill_test/jquery_keyevent_polyfill_test.module

Helper module for jQuery 3.6 FunctionalJavascript test compatibility.

File

core/modules/system/tests/modules/jquery_keyevent_polyfill_test/jquery_keyevent_polyfill_test.module

View source
<?php


/**
 * @file
 * Helper module for jQuery 3.6 FunctionalJavascript test compatibility.
 */

/**
 * Implements hook_library_info_alter().
 */
function jquery_keyevent_polyfill_test_library_info_alter(&$libraries, $module) {
    if ($module == 'core' && isset($libraries['jquery'])) {
        $libraries['jquery']['dependencies'][] = 'jquery_keyevent_polyfill_test/jquery.keyevent.polyfill';
    }
}

Functions

Title Deprecated Summary
jquery_keyevent_polyfill_test_library_info_alter Implements hook_library_info_alter().

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