You are here

function ckeditorheight_library_info_alter in CKEditorHeight 8

Implements hook_library_info_alter().

File

./ckeditorheight.module, line 10
ckeditorheight.module

Code

function ckeditorheight_library_info_alter(&$libraries, $extension) {
  if ($extension === 'ckeditor' && isset($libraries['drupal.ckeditor'])) {
    $module_path = drupal_get_path('module', 'ckeditorheight');
    assert((bool) $module_path);
    $js_path = "/{$module_path}/ckeditorheight.js";
    $libraries['drupal.ckeditor']['js'][$js_path] = [];
  }
}