Commit 9fca92ac authored by spncr's avatar spncr
Browse files

Issue #3248374: Drupal 9 compatibility v2

parent 099a80dd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -89,6 +89,8 @@ class CommerceIats {
      return;
    }

    // @todo remove the if version_compare once the module stops supporting Drupal8
    // @todo use dependency injections instead of \Drupal global
    if (!$prefix) {
      if (version_compare(\Drupal::VERSION, 9.1, '>=')) {
        // 9.1+