protected function CKEditorVersionAwarePluginBase::versionCompare in CKEditor Media Embed Plugin 8
Compares the specified version against the currently installed version.
Parameters
string $version: The version number that should be compared against the CKEditor version.
Return value
int Returns returns -1 if the first version is lower than the specified version, 0 if they are equal, and 1 if the specified version is lower.
See also
2 calls to CKEditorVersionAwarePluginBase::versionCompare()
- AutoEmbed::needsTextMatchDependency in src/
Plugin/ CKEditorPlugin/ AutoEmbed.php - Determine if the textmatch plugin is needed as a dependency.
- AutoLink::needsTextMatchDependency in src/
Plugin/ CKEditorPlugin/ AutoLink.php - Determine if the textmatch plugin is needed as a dependency.
File
- src/
CKEditorVersionAwarePluginBase.php, line 89
Class
- CKEditorVersionAwarePluginBase
- Defines a utlity plugin base for a CKEditor version aware plugin.
Namespace
Drupal\ckeditor_media_embedCode
protected function versionCompare($version) {
$plugins_version = AssetManager::getPluginsVersion($this->libraryDiscovery, $this->configFactory);
return version_compare($plugins_version, $version);
}