public static function SmartlingApiFactory::getModuleVersion in TMGMT Translator Smartling 8.2
Returns module version.
Parameters
string $name:
string $default:
Return value
string
2 calls to SmartlingApiFactory::getModuleVersion()
- BufferLogger::flush in src/
Logger/ BufferLogger.php - Log messages into needed destination.
- SmartlingApiFactory::create in src/
Smartling/ SmartlingApiFactory.php - Returns API object as a service.
File
- src/
Smartling/ SmartlingApiFactory.php, line 31 - SmartlingApiFactory.php.
Class
- SmartlingApiFactory
- Class SmartlingApiFactory @package Drupal\tmgmt_smartling\Smartling
Namespace
Drupal\tmgmt_smartling\SmartlingCode
public static function getModuleVersion($name = 'tmgmt_smartling', $default = '8.x-2.x-dev') {
$info = system_get_info('module', $name);
$client_version = $default;
if (!empty($info['version'])) {
$client_version = $info['version'];
}
return $client_version;
}