You are here

function bueditor_library_info_alter in BUEditor 8

Same name and namespace in other branches
  1. 8.2 bueditor.module \bueditor_library_info_alter()

Implements hook_library_info_alter().

File

./bueditor.module, line 28
Defines Drupal hooks for BUEditor.

Code

function bueditor_library_info_alter(array &$libraries, $module) {

  // Use dev version of BUE library if dev mode is on.
  if ($module === 'bueditor' && \Drupal::config('bueditor.settings')
    ->get('devmode')) {
    $libraries['BUE'] = $libraries['BUE.dev'];
  }
}