Same name and namespace in other branches
  1. 8.x-1.x tests/modules/colorbox_library_test/colorbox_library_test.module \colorbox_library_test_library_info_alter() 1 comment

Implements hook_library_alter().

File

tests/modules/colorbox_library_test/colorbox_library_test.module, line 13

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]);
    }
}