js_testing_log_test.module

Same filename in other branches
  1. 9 core/modules/system/tests/modules/js_testing_log_test/js_testing_log_test.module
  2. 11.x core/modules/system/tests/modules/js_testing_log_test/js_testing_log_test.module

Helper module for the JavaScript deprecation tests.

File

core/modules/system/tests/modules/js_testing_log_test/js_testing_log_test.module

View source
<?php


/**
 * @file
 * Helper module for the JavaScript deprecation tests.
 */

/**
 * Implements hook_page_attachments().
 */
function js_testing_log_test_page_attachments(array &$attachments) {
    // Unconditionally attach an asset to the page.
    $attachments['#attached']['library'][] = 'js_testing_log_test/deprecation_log';
}

/**
 * Implements hook_js_settings_alter().
 */
function js_testing_log_test_js_settings_alter(&$settings) {
    $settings['suppressDeprecationErrors'] = FALSE;
}

Functions

Title Deprecated Summary
js_testing_log_test_js_settings_alter Implements hook_js_settings_alter().
js_testing_log_test_page_attachments Implements hook_page_attachments().

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