Skip to content
Snippets Groups Projects
Commit 961f4f00 authored by Konstantinos Platis's avatar Konstantinos Platis
Browse files

Replace getExtensionInfo with getAllInstalledInfo

parent 0332fc06
No related branches found
No related tags found
1 merge request!1Add composer file and make module d9-ready
...@@ -43,7 +43,7 @@ function cern_integration_update_projects_alter(&$projects) ...@@ -43,7 +43,7 @@ function cern_integration_update_projects_alter(&$projects)
// unset($projects['drupal']); // unset($projects['drupal']);
// Remove all centrally managed modules. // 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 (preg_match('#^modules/#', drupal_get_path("module", $module_name))) {
if (isset($module["project"])){ if (isset($module["project"])){
unset($projects[$module["project"]]); unset($projects[$module["project"]]);
...@@ -52,7 +52,7 @@ function cern_integration_update_projects_alter(&$projects) ...@@ -52,7 +52,7 @@ function cern_integration_update_projects_alter(&$projects)
} }
// Remove all centrally managed themes. // 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 (preg_match('#^themes/#', drupal_get_path("theme", $theme_name))) {
if (isset($theme["project"])){ if (isset($theme["project"])){
unset($projects[$theme["project"]]); unset($projects[$theme["project"]]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment