public static function AssetManager::getCKEditorVersion in CKEditor Media Embed Plugin 8
7 calls to AssetManager::getCKEditorVersion()
- AssetManager::getPluginsVersion in src/
AssetManager.php - Get the plugins version.
- AssetManagerTest::testGetCKEditorVersion in tests/
src/ Unit/ AssetManagerTest.php - CKEditorMediaEmbedSettingsForm::buildForm in src/
Form/ CKEditorMediaEmbedSettingsForm.php - Form constructor.
- ckeditor_media_embed_install in ./
ckeditor_media_embed.install - Implements hook_install().
- ckeditor_media_embed_requirements in ./
ckeditor_media_embed.install - Implements hook_requirements().
File
- src/
AssetManager.php, line 126
Class
- AssetManager
- The AssetManager facade for managing CKEditor plugins.
Namespace
Drupal\ckeditor_media_embedCode
public static function getCKEditorVersion(LibraryDiscoveryInterface $library_discovery, ConfigFactory $config_factory, $path = 'core', $extension = 'core') {
$config_version = $config_factory
->get('ckeditor_media_embed.settings')
->get('ckeditor_version');
if (!empty($config_version)) {
return $config_version;
}
$parsed_version = self::parseForCoreCKEditorVersion($path, $extension);
return empty($parsed_version) ? self::$libraryVersion : $parsed_version;
}