From 393f6d1d19a235af8a3d930325206d6a9fb20e28 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Tue, 5 Dec 2017 22:12:27 -0600 Subject: [PATCH] CRM-21093: Call ->initialize() on the CiviCRM service now that Drupal 8 module has changed --- CRM/Utils/System/Drupal8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).