You are here

function thunder_demo_js_alter in Thunder 6.2.x

Implements hook_js_alter().

File

modules/thunder_demo/thunder_demo.module, line 37
Provides hooks for demo module.

Code

function thunder_demo_js_alter(&$javascript, AttachedAssetsInterface $assets) {

  // Put the tour at the very end, because it depends on elements that are
  // generated by JS.
  if (isset($javascript['core/modules/tour/js/tour.js'])) {
    $javascript['core/modules/tour/js/tour.js']['weight'] = 1;
  }
}