You are here

public function DrupalApplication::getApplicationModuleVersion in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/SyncCoreInterface/DrupalApplication.php \Drupal\cms_content_sync\SyncCoreInterface\DrupalApplication::getApplicationModuleVersion()
  2. 2.0.x src/SyncCoreInterface/DrupalApplication.php \Drupal\cms_content_sync\SyncCoreInterface\DrupalApplication::getApplicationModuleVersion()

File

src/SyncCoreInterface/DrupalApplication.php, line 154

Class

DrupalApplication
Class DrupalApplication.

Namespace

Drupal\cms_content_sync\SyncCoreInterface

Code

public function getApplicationModuleVersion() {
  $version = \Drupal::service('extension.list.module')
    ->getExtensionInfo('cms_content_sync')['version'];
  return $version ? $version : 'dev';
}