[REF] Add in getVersion override for Drupal 8/9 to support cv testing and also cv...
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 7 Dec 2021 23:27:09 +0000 (10:27 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 7 Dec 2021 23:27:43 +0000 (10:27 +1100)
CRM/Utils/System/Drupal8.php

index 3cf29f449867f02ca0a7268792bbcfa5009bb9f5..3037cec10a956e64f67805c8c2298e96bdf439c1 100644 (file)
@@ -883,4 +883,11 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase {
     }
   }
 
+  public function getVersion() {
+    if (class_exists('\Drupal')) {
+      return \Drupal::VERSION;
+    }
+    return 'Unknown';
+  }
+
 }