Alternate ways of checking for Drupal and/or version of Drupal
lewisnyman opened this issue · comments
Lewis Nyman commented
Just chucking out ideas at this stage, mainly for Drupal 8.
This would fail in Drupal 8 because it changed to drupalSettings, but then that's a way of testing for version.
You can also look for paths that use sites/default/files or sites/default/themes (changed to /themes in D8)