Created
March 28, 2024 00:38
-
-
Save aklump/d07c4ad9d27d641c5293d10a515d921f to your computer and use it in GitHub Desktop.
Get any Drupal version.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$version = class_exists('\Drupal') ? Drupal::VERSION : NULL; | |
$version = $version ?? (defined('VERSION') ? constant('VERSION') : NULL); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment