You are here

function varbase_editor_update_8003 in Varbase Editor 8.6

Same name and namespace in other branches
  1. 8.7 varbase_editor.install \varbase_editor_update_8003()
  2. 8.4 varbase_editor.install \varbase_editor_update_8003()
  3. 8.5 varbase_editor.install \varbase_editor_update_8003()
  4. 9.0.x varbase_editor.install \varbase_editor_update_8003()

Enable CKEditor media embed module.

File

./varbase_editor.install, line 129
Install, update and uninstall functions for the Varbase editor module.

Code

function varbase_editor_update_8003() {
  if (!\Drupal::moduleHandler()
    ->moduleExists('ckeditor_media_embed')) {
    \Drupal::service('module_installer')
      ->install([
      'ckeditor_media_embed',
    ], FALSE);
  }
}