You are here

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

Retrieve the currently installed version of the CKEditor plugins.

Parameters

\Drupal\Core\Config\ConfigFactory $config_factory: The config factory service to use for retrieving configuration settings.

Return value

string The version number of the currently installed CKEditor plugins.

3 calls to AssetManager::getPluginsInstalledVersion()
AssetManager::getPluginsVersion in src/AssetManager.php
Get the plugins version.
AssetManagerTest::testGetPluginsInstalledVersion in tests/src/Unit/AssetManagerTest.php
Tests \Drupal\ckeditor_media_embed\AssetManager::getPluginsInstalledVersion()(<version>).
_ckeditor_media_embed_requirments_build_description in ./ckeditor_media_embed.install
Retrieve the requirements description.

File

src/AssetManager.php, line 145

Class

AssetManager
The AssetManager facade for managing CKEditor plugins.

Namespace

Drupal\ckeditor_media_embed

Code

public static function getPluginsInstalledVersion(ConfigFactory $config_factory) {
  return $config_factory
    ->get('ckeditor_media_embed.settings')
    ->get('plugins_version_installed');
}