diff --git a/cern_integration.module b/cern_integration.module index 5c31320c408449a1ec2122f8e626502394481cfe..25dc6b2add59697858b965cfa2f3e1ffa58a5547 100644 --- a/cern_integration.module +++ b/cern_integration.module @@ -43,7 +43,7 @@ function cern_integration_update_projects_alter(&$projects) // unset($projects['drupal']); // Remove all centrally managed modules. - foreach (\Drupal::service('extension.list.module')->getExtensionInfo() as $module_name => $module) { + foreach (\Drupal::service('extension.list.module')->getAllInstalledInfo() as $module_name => $module) { if (preg_match('#^modules/#', drupal_get_path("module", $module_name))) { if (isset($module["project"])){ unset($projects[$module["project"]]); @@ -52,7 +52,7 @@ function cern_integration_update_projects_alter(&$projects) } // Remove all centrally managed themes. - foreach (\Drupal::service('extension.list.theme')->getExtensionInfo() as $theme_name => $theme) { + foreach (\Drupal::service('extension.list.theme')->getAllInstalledInfo() as $theme_name => $theme) { if (preg_match('#^themes/#', drupal_get_path("theme", $theme_name))) { if (isset($theme["project"])){ unset($projects[$theme["project"]]);