function JqueryKeyeventPolyfillTestHooks::libraryInfoAlter

Implements hook_library_info_alter().

File

core/modules/system/tests/modules/jquery_keyevent_polyfill_test/src/Hook/JqueryKeyeventPolyfillTestHooks.php, line 17

Class

JqueryKeyeventPolyfillTestHooks
Hook implementations for jquery_keyevent_polyfill_test.

Namespace

Drupal\jquery_keyevent_polyfill_test\Hook

Code

public function libraryInfoAlter(&$libraries, $module) : void {
    if ($module == 'core' && isset($libraries['jquery'])) {
        $libraries['jquery']['dependencies'][] = 'jquery_keyevent_polyfill_test/jquery.keyevent.polyfill';
    }
}

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