Skip to content

Commit

Permalink
deprecated service
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed May 6, 2022
1 parent 3ce7c1b commit da3b4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/src/Setup/DrupalUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/".');
Expand Down

0 comments on commit da3b4f3

Please sign in to comment.