diff --git a/core/core.libraries.yml b/core/core.libraries.yml index 4e80798..5cd0004 100644 --- a/core/core.libraries.yml +++ b/core/core.libraries.yml @@ -8,6 +8,13 @@ backbone: dependencies: - core/underscore +classList: + remote: https://github.com/eligrey/classList.js + # @todo Stable release required for Drupal 8.0. + version: master + js: + assets/vendor/classList/classList.min.js: { weight: -21, browsers: { IE: 'lte IE 9', '!IE': false } } + ckeditor: remote: https://github.com/ckeditor/ckeditor-dev # @todo Stable release required for Drupal 8.0. @@ -34,6 +41,15 @@ drupalSettings: version: VERSION settings: {} +drupal.active-link: + version: VERSION + js: + misc/active-link.js: {} + dependencies: + - core/drupal + - core/drupalSettings + - core/classList + drupal.ajax: version: VERSION js: diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 93fdadb..12f0514 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -1319,7 +1319,7 @@ function system_page_build(&$page) { // @see theme_links() // @see \Drupal\system\Controller\SystemController::setLinkActiveClass if (\Drupal::currentUser()->isAuthenticated()) { - $page['#attached']['library'][] = array('system', 'drupal.active-link'); + $page['#attached']['library'][] = array('core', 'drupal.active-link'); } else { $page['#post_render_cache']['\Drupal\system\Controller\SystemController::setLinkActiveClass'] = array(