You are here

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

Retrieve a list of all plugins to install.

Return value

array An array of CKEditor plugin names that will be installed.

7 calls to AssetManager::getPlugins()
AssetManager::getPluginsInstallStatuses in src/AssetManager.php
Retrieve the install status of all CKEditor plugins.
AssetManager::pluginsAreInstalled in src/AssetManager.php
Determine if all our CKEditor plugins are installed.
AssetManagerTest::testGetPluginInstallStatusesAbove411 in tests/src/Unit/AssetManagerTest.php
Tests \Drupal\ckeditor_media_embed\AssetManager::getPluginsInstallStatuses(<version>).
AssetManagerTest::testGetPluginInstallStatusesMissing in tests/src/Unit/AssetManagerTest.php
Tests \Drupal\ckeditor_media_embed\AssetManager::getPluginsInstallStatuses(<version>).
AssetManagerTest::testGetPlugins in tests/src/Unit/AssetManagerTest.php
Tests \Drupal\ckeditor_media_embed\AssetManager::getPlugins().

... See full list

File

src/AssetManager.php, line 32

Class

AssetManager
The AssetManager facade for managing CKEditor plugins.

Namespace

Drupal\ckeditor_media_embed

Code

public static function getPlugins($version = '') {
  if (empty($version)) {
    $version = self::$libraryVersion;
  }
  $plugins = [
    'autoembed',
    'autolink',
    'embed',
    'embedbase',
    'embedsemantic',
    'notification',
    'notificationaggregator',
  ];

  // Text match was added as a new dependency of autolink as of 4.11.
  if (version_compare($version, '4.11', '>=')) {
    $plugins[] = 'textmatch';
  }
  return $plugins;
}