Created
July 8, 2019 10:10
-
-
Save juban/e7e12c0487a08af225de8fce5841c8ff to your computer and use it in GitHub Desktop.
Test Craft CMS 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
$schemaVersion = Craft::$app->getInstalledSchemaVersion(); | |
if (version_compare($schemaVersion, '3.2.0', '>=')) { | |
// Do something specific to Craft CMS 3.2 and upper | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment