function _xmlsitemap_get_version in XML sitemap 2.x
Same name and namespace in other branches
- 8 xmlsitemap.module \_xmlsitemap_get_version()
- 6.2 xmlsitemap.inc \_xmlsitemap_get_version()
- 7.2 xmlsitemap.inc \_xmlsitemap_get_version()
Returns xmlsitemap module version.
@static string $version Current version.
Return value
string Xmlsitemap module version.
1 call to _xmlsitemap_get_version()
- _xmlsitemap_get_blurb in ./
xmlsitemap.module - Get Blurb.
File
- ./
xmlsitemap.module, line 2294 - xmlsitemap XML sitemap
Code
function _xmlsitemap_get_version() {
static $version;
if (!isset($version)) {
$modules = \Drupal::service('extension.list.module')
->getList();
$version = $modules['xmlsitemap']->info['version'];
}
return $version;
}