public function InstallablePluginBase::getVersion in Markdown 8.2
The current version of the plugin.
Return value
string|null The plugin version.
Overrides InstallablePluginInterface::getVersion
2 calls to InstallablePluginBase::getVersion()
- CommonMark::converter in src/
Plugin/ Markdown/ CommonMark/ CommonMark.php - Retrieves a CommonMark converter instance.
- InstallablePluginBase::getLabel in src/
Plugin/ Markdown/ InstallablePluginBase.php - Displays the human-readable label of the plugin.
File
- src/
Plugin/ Markdown/ InstallablePluginBase.php, line 315
Class
- InstallablePluginBase
- Base class for installable plugins.
Namespace
Drupal\markdown\Plugin\MarkdownCode
public function getVersion() {
if (!$this->pluginDefinition->version) {
throw new MissingVersionException(sprintf('The library "%s" did not not specify a version. If the plugin has no version, it must be explicitly set to "0.0.0".', $this
->getPluginId()));
}
return $this->pluginDefinition->version;
}