Skip to content
Snippets Groups Projects
Commit 55667f14 authored by ytsurk's avatar ytsurk Committed by Ivica Puljic
Browse files

Issue #3346593 by ytsurk: "site.path" service no longer existing in D10

parent 720837ab
No related branches found
No related tags found
No related merge requests found
......@@ -503,7 +503,7 @@ function _bs_base_drupal_scan($type, $reset = FALSE) {
ExtensionDiscovery::ORIGIN_ROOT => ''
];
if (\Drupal::hasService('kernel')) {
$searchdirs[ExtensionDiscovery::ORIGIN_SITE] = \Drupal::service('site.path');
$searchdirs[ExtensionDiscovery::ORIGIN_SITE] = \Drupal::getContainer()->getParameter('site.path');
}
else {
$searchdirs[ExtensionDiscovery::ORIGIN_SITE] = DrupalKernel::findSitePath(Request::createFromGlobals());
......
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