diff --git a/CRM/Utils/System/Drupal8.php b/CRM/Utils/System/Drupal8.php index 09f102b75af4..d1ead23c1b2e 100644 --- a/CRM/Utils/System/Drupal8.php +++ b/CRM/Utils/System/Drupal8.php @@ -459,7 +459,7 @@ public function loadBootStrap($params = array(), $loadUser = TRUE, $throwError = \Drupal\Core\DrupalKernel::createFromRequest($request, $autoloader, 'prod')->prepareLegacyRequest($request); // Initialize Civicrm - \Drupal::service('civicrm'); + \Drupal::service('civicrm')->initialize(); // We need to call the config hook again, since we now know // all the modules that are listening on it (CRM-8655).