<?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;
}
