You are here

function outdatedbrowser_library_info_alter in Outdated Browser 8

Implements hook_library_info_alter().

File

./outdatedbrowser.module, line 46
Outdated Browser module file.

Code

function outdatedbrowser_library_info_alter(array &$libraries, $module) {

  // Use uncompressed version of Outdated Browser library,
  // if 'source' is selected as compression type.
  if ($module === 'outdatedbrowser' && \Drupal::config('outdatedbrowser.settings')
    ->get('compression_type') == 'source') {
    $libraries['library'] = $libraries['library.uncompressed'];
  }
}