Issue #3383939 by mmenavas, themodularlab: Add backwards compatibility support for drupal 8 and 9 on 3.x branch.