You are here

public static function AssetManager::pluginsAreInstalled in CKEditor Media Embed Plugin 8

Determine if all our CKEditor plugins are installed.

Return value

bool Returns TRUE if all of our CKEditor plugins are installed and FALSE otherwise.

3 calls to AssetManager::pluginsAreInstalled()
AssetManagerTest::testPluginsAreInstalled in tests/src/Unit/AssetManagerTest.php
Tests \Drupal\ckeditor_media_embed\AssetManager::pluginsAreInstalled().
CKEditorMediaEmbedSettingsForm::buildForm in src/Form/CKEditorMediaEmbedSettingsForm.php
Form constructor.
ckeditor_media_embed_install in ./ckeditor_media_embed.install
Implements hook_install().

File

src/AssetManager.php, line 75

Class

AssetManager
The AssetManager facade for managing CKEditor plugins.

Namespace

Drupal\ckeditor_media_embed

Code

public static function pluginsAreInstalled($version = '') {
  $installed = TRUE;
  foreach (self::getPlugins($version) as $plugin_name) {
    if (!self::pluginIsInstalled($plugin_name)) {
      $installed = FALSE;
    }
  }
  return $installed;
}