Skip to content

Commit

Permalink
Merge pull request #19725 from totten/5.35-avail-perm
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
totten authored Mar 4, 2021
2 parents 288dde5 + 76fffb7 commit 946090a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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
5 changes: 4 additions & 1 deletion release-notes/5.35.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,10 @@ Released March 3, 2021
([dev/drupal#65](https://lab.civicrm.org/dev/drupal/-/issues/65):
[580](https://github.com/civicrm/civicrm-drupal/pull/580))**

- **fix deceased date format
- **Drupal9: system_get_info() not available. CiviReport crash.**
([dev/drupal#156](https://lab.civicrm.org/dev/drupal/-/issues/156): [#19725](https://github.com/civicrm/civicrm-core/pull/19725))

- **Fix deceased date format
([607](https://github.com/civicrm/civicrm-drupal/pull/607))**

### WordPress Integration
Expand Down

0 comments on commit 946090a

Please sign in to comment.