Skip to content

Commit

Permalink
[REF] Add in getVersion override for Drupal 8/9 to support cv testing…
Browse files Browse the repository at this point in the history
… and also cv vars:show picking up the right CMS version
  • Loading branch information
seamuslee001 committed Dec 7, 2021
1 parent c3170cf commit ebd6edf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CRM/Utils/System/Drupal8.php
Original file line number Diff line number Diff line change
Expand Up @@ -883,4 +883,11 @@ public function invalidateRouteCache() {
}
}

public function getVersion() {
if (class_exists('\Drupal')) {
return \Drupal::VERSION;
}
return 'Unknown';
}

}

0 comments on commit ebd6edf

Please sign in to comment.