You are here

function jquery_keyevent_polyfill_test_library_info_alter in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/jquery_keyevent_polyfilll_test/jquery_keyevent_polyfill_test.module \jquery_keyevent_polyfill_test_library_info_alter()

Implements hook_library_info_alter().

File

core/modules/system/tests/modules/jquery_keyevent_polyfilll_test/jquery_keyevent_polyfill_test.module, line 11
Helper module for jQuery 3.6 FunctionalJavascript test compatibility.

Code

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';
  }
}