From ebd6edf265d4bbab39a2c295df7fa0ad1e8714c5 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 8 Dec 2021 10:27:09 +1100 Subject: [PATCH] [REF] Add in getVersion override for Drupal 8/9 to support cv testing and also cv vars:show picking up the right CMS version --- CRM/Utils/System/Drupal8.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CRM/Utils/System/Drupal8.php b/CRM/Utils/System/Drupal8.php index 3cf29f4498..3037cec10a 100644 --- 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'; + } + } -- 2.25.1