function select2boxes_library_info_alter in Select2 Boxes 8
Implements hook_library_info_alter().
File
- ./
select2boxes.module, line 59 - Basic module file.
Code
function select2boxes_library_info_alter(&$libraries, $extension) {
// Specify library version for our widget
// to make it the same as we have for Select2 library.
if ($extension == 'select2boxes' && isset($libraries['widget'])) {
$version = \Drupal::config('select2boxes.settings')
->get('version');
if (!empty($version)) {
$libraries['widget']['version'] = $version;
}
}
}