You are here

function _xmlsitemap_get_version in XML sitemap 8

Same name and namespace in other branches
  1. 6.2 xmlsitemap.inc \_xmlsitemap_get_version()
  2. 7.2 xmlsitemap.inc \_xmlsitemap_get_version()
  3. 2.x xmlsitemap.module \_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 2363
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;
}