protected function WebformHelpManager::getVersion in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformHelpManager.php \Drupal\webform\WebformHelpManager::getVersion()
Get the current version number of the Webform module.
Return value
string The current version number of the Webform module.
2 calls to WebformHelpManager::getVersion()
- WebformHelpManager::initHelp in src/
WebformHelpManager.php - Initialize help.
- WebformHelpManager::isUpdated in src/
WebformHelpManager.php - Determine if the Webform module has been updated.
File
- src/
WebformHelpManager.php, line 775
Class
- WebformHelpManager
- Webform help manager.
Namespace
Drupal\webformCode
protected function getVersion() {
if (isset($this->version)) {
return $this->version;
}
$module_info = Yaml::decode(file_get_contents($this->moduleHandler
->getModule('webform')
->getPathname()));
$this->version = isset($module_info['version']) && !preg_match('/^8.x-5.\\d+-.*-dev$/', $module_info['version']) ? $module_info['version'] : '8.x-5.x-dev';
return $this->version;
}