Same filename and directory in other branches
Test specific changes for the colorbox library test.
File
-
tests/
modules/ colorbox_library_test/ colorbox_library_test.module
View source
<?php
/**
* @file
* Test specific changes for the colorbox library test.
*/
use Drupal\Core\Site\Settings;
/**
* Implements hook_library_alter().
*/
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]);
}
}
Functions
Title | Deprecated | Summary |
---|---|---|
colorbox_library_test_library_info_alter | Implements hook_library_alter(). |