function ckeditor_media_embed_install in CKEditor Media Embed Plugin 8
Implements hook_install().
File
- ./
ckeditor_media_embed.install, line 15 - Install file for the CKEditor Media Embed plugin module.
Code
function ckeditor_media_embed_install() {
$version = AssetManager::getCKEditorVersion(\Drupal::service('library.discovery'), \Drupal::service('config.factory'));
if (!AssetManager::pluginsAreInstalled($version)) {
\Drupal::messenger()
->addWarning(_ckeditor_media_embed_get_install_instructions());
}
}