You are here

function datex_fullcalendar_js_alter in Datex 8

Implements hook_js_alter().

Out js will be loaded via libraries.yml

File

datex_fullcalendar/datex_fullcalendar.module, line 10

Code

function datex_fullcalendar_js_alter(&$javascript, AttachedAssetsInterface $assets) {
  $unset = [];
  foreach ($javascript as $key => $value) {
    if (strpos($key, 'fullcalendar.library') >= 0) {
      $unset[] = $key;
    }
  }
  foreach ($unset as $u) {
    unset($javascript[$u]);
  }
}