modernizr_deprecation_test.module

Helper module for checking Modernizr related deprecations.

File

core/modules/system/tests/modules/modernizr_deprecation_test/modernizr_deprecation_test.module

View source
<?php


/**
 * @file
 * Helper module for checking Modernizr related deprecations.
 */

/**
 * Implements hook_library_info_alter().
 */
function modernizr_deprecation_test_library_info_alter(&$libraries, $extension) {
    if ($extension === 'core') {
        unset($libraries['modernizr']['header']);
        $libraries['modernizr']['js']['assets/vendor/modernizr/modernizr.min.js']['weight'] = -15;
        $libraries['modernizr']['js']['misc/modernizr-additional-tests.js']['weight'] = -14;
    }
    if ($extension === 'js_testing_log_test') {
        $libraries['deprecation_log']['js']['js/js_testing_log.js']['weight'] = -16;
    }
}

Functions

Title Deprecated Summary
modernizr_deprecation_test_library_info_alter Implements hook_library_info_alter().

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