Skip to content
Snippets Groups Projects
Unverified Commit 80dddea3 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #21809 from demeritcowboy/site-path

drupal#167 - Deprecated service to be removed in Drupal 10
parents 5e23b7cc da3b4f30
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ class DrupalUtil {
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/".');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment