You are here

function colorbox_library_test_library_info_alter in Colorbox 8

Implements hook_library_alter().

File

tests/modules/colorbox_library_test/colorbox_library_test.module, line 13
Test specific changes for the colorbox library test.

Code

function colorbox_library_test_library_info_alter(&$libraries, $extension) {
  if ($extension !== 'colorbox') {
    return;
  }
  foreach ($libraries['colorbox']['js'] as $key => $library) {
    $libraries['colorbox']['js']['/' . Settings::get('file_public_path') . $key] = $library;
    unset($libraries['colorbox']['js'][$key]);
  }
}