From ff6e6c9926fab22724a49f32f7c5d6a4d45a8251 Mon Sep 17 00:00:00 2001 From: Johannes Przymusinski Date: Sun, 25 Dec 2022 11:34:07 +0100 Subject: [PATCH] [TASK] Fallback to raw extension data when no EmConf was found Note: The current ListUtility from the extension manager does not provide all information we could get from EmConf. --- Classes/Provider/ExtensionProvider.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Classes/Provider/ExtensionProvider.php b/Classes/Provider/ExtensionProvider.php index d869f2f..db9dd9f 100644 --- a/Classes/Provider/ExtensionProvider.php +++ b/Classes/Provider/ExtensionProvider.php @@ -44,7 +44,19 @@ public function get(array $data) } if ($isv11) { - $data['extensions'][$key] = $emConfUtility->includeEmConf($key, $f['packagePath']); + // Try loading extension data from EmConf + $extensionData = $emConfUtility->includeEmConf($key, $f['packagePath']); + if (!$extensionData) { + // Fallback to loading extension information from the extension itself. + // FIXME: The ListUtility from TYPO3 currently does not provide the following information: + // - author + // - constraints + // - category + // - description (composer descriptions gets the title) + $extensionData = $f; + } + + $data['extensions'][$key] = $extensionData; } elseif ($isv10) { $data['extensions'][$key] = $emConfUtility->includeEmConf($key, $f); } else {