projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3170cf
)
[REF] Add in getVersion override for Drupal 8/9 to support cv testing and also cv...
author
Seamus Lee
<seamuslee001@gmail.com>
Tue, 7 Dec 2021 23:27:09 +0000
(10:27 +1100)
committer
Seamus Lee
<seamuslee001@gmail.com>
Tue, 7 Dec 2021 23:27:43 +0000
(10:27 +1100)
CRM/Utils/System/Drupal8.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/System/Drupal8.php
b/CRM/Utils/System/Drupal8.php
index 3cf29f449867f02ca0a7268792bbcfa5009bb9f5..3037cec10a956e64f67805c8c2298e96bdf439c1 100644
(file)
--- a/
CRM/Utils/System/Drupal8.php
+++ b/
CRM/Utils/System/Drupal8.php
@@
-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';
+ }
+
}