diff --git a/CRM/Core/Permission/Drupal8.php b/CRM/Core/Permission/Drupal8.php index e9fa1377d961..65112da46465 100644 --- a/CRM/Core/Permission/Drupal8.php +++ b/CRM/Core/Permission/Drupal8.php @@ -58,7 +58,7 @@ public function getAvailablePermissions() { $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) {