Skip to content

Commit

Permalink
Merge pull request #19583 from demeritcowboy/system-get-info
Browse files Browse the repository at this point in the history
dev/drupal#156 - system_get_info() is gone in drupal 9
  • Loading branch information
seamuslee001 authored Feb 11, 2021
2 parents 48a2c63 + 1cb44f1 commit a78153f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Permission/Drupal8.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a78153f

Please sign in to comment.