forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
8 lines
360 B
Twig
8 lines
360 B
Twig
/**
|
|
* Implements hook_js_alter().
|
|
*/
|
|
function {{ machine_name }}_js_alter(&$javascript, \Drupal\Core\Asset\AttachedAssetsInterface $assets) {
|
|
// Swap out jQuery to use an updated version of the library.
|
|
$javascript['core/assets/vendor/jquery/jquery.min.js']['data'] = \Drupal::service('extension.list.module')->getPath('jquery_update') . '/jquery.js';
|
|
}
|