diff --git a/setup/src/Setup/DrupalUtil.php b/setup/src/Setup/DrupalUtil.php index d16717dc2eae..20afedcfedac 100644 --- a/setup/src/Setup/DrupalUtil.php +++ b/setup/src/Setup/DrupalUtil.php @@ -20,7 +20,7 @@ public static function getDrupalSiteDir($cmsPath) { return basename(conf_path()); } elseif (class_exists('Drupal')) { - return \Drupal::service('site.path'); + return \Drupal::getContainer()->getParameter('site.path'); } else { throw new \Exception('Cannot detect path under Drupal "sites/".');