Skip to content

Commit

Permalink
Merge pull request #22220 from seamuslee001/drupal9_get_version
Browse files Browse the repository at this point in the history
[REF] Add in getVersion override for Drupal 8/9 to support cv testing…
  • Loading branch information
seamuslee001 authored Dec 8, 2021
2 parents c3170cf + ebd6edf commit aed6c7f
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 aed6c7f

Please sign in to comment.