Skip to content

Commit

Permalink
Issue #4265: Fix the wrong service.
Browse files Browse the repository at this point in the history
  • Loading branch information
LOBsTerr committed Sep 17, 2022
1 parent 8c1d2b7 commit c646dc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Extension/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,12 @@ private function getExtensions(
return $extensions;
}

$module_handler = \Drupal::service('module_handle');
foreach ($this->extensions[$type] as $extension) {
$name = $extension->getName();

$isInstalled = $type == 'module'
&& \Drupal::service(
'extension.list.module'
)->moduleExists($name);
&& $module_handler->moduleExists($name);
if (!$isInstalled && property_exists($extension, 'status')) {
$isInstalled = ($extension->status) ? true : false;
}
Expand Down

0 comments on commit c646dc6

Please sign in to comment.