From 1cb44f1247c0be4b475bfee545512fbe61ba847c Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Thu, 11 Feb 2021 13:35:15 -0500 Subject: [PATCH] system_get_info is deprecated --- CRM/Core/Permission/Drupal8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Permission/Drupal8.php b/CRM/Core/Permission/Drupal8.php index e9fa1377d9..65112da464 100644 --- a/CRM/Core/Permission/Drupal8.php +++ b/CRM/Core/Permission/Drupal8.php @@ -58,7 +58,7 @@ class CRM_Core_Permission_Drupal8 extends CRM_Core_Permission_DrupalBase { $allCorePerms = \CRM_Core_Permission::basicPermissions(TRUE); $dperms = \Drupal::service('user.permissions')->getPermissions(); - $modules = system_get_info('module'); + $modules = \Drupal::service('extension.list.module')->getAllInstalledInfo(); $permissions = []; foreach ($dperms as $permName => $dperm) { -- 2.25.1