You are here

function bootstrap4_modal_library_info_alter in Bootstrap 4 Modal 8

Same name and namespace in other branches
  1. 2.x bootstrap4_modal.module \bootstrap4_modal_library_info_alter()

Implements hook_library_info_alter().

File

./bootstrap4_modal.module, line 93
Contains bootstrap4_modal.module.

Code

function bootstrap4_modal_library_info_alter(&$libraries, $extension) {
  if ($extension == 'entity_browser') {
    $libraries['bootstrap4_modal_selection'] = [
      'version' => 'VERSION',
      'js' => [
        '/' . drupal_get_path('module', 'bootstrap4_modal') . '/js/entity_browser.bootstrap4_modal_selection.js' => [],
      ],
      'dependencies' => [
        'core/drupalSettings',
      ],
    ];
  }
}