You are here

function upgrade_status_test_library_preprocess_html in Upgrade Status 8.3

Same name and namespace in other branches
  1. 8.2 tests/modules/upgrade_status_test_library/upgrade_status_test_library.module \upgrade_status_test_library_preprocess_html()

Implements hook_preprocess_html().

File

tests/modules/upgrade_status_test_library/upgrade_status_test_library.module, line 6

Code

function upgrade_status_test_library_preprocess_html(&$variables) {
  $variables['#attach']['libraries'] = [
    'upgrade_status_test_library/deprecated_library',
  ];
  $variables['#attach']['libraries'][] = 'upgrade_status_test_twig/deprecated_library';

  // These should be skipped.
  $library = 'deprecated_library';
  $variables['#attach']['libraries'][] = "upgrade_status_test_library/{$library}";
}