Skip to content

Commit

Permalink
[TASK] Fallback to raw extension data when no EmConf was found
Browse files Browse the repository at this point in the history
Note: The current ListUtility from the extension manager does not
provide all information we could get from EmConf.
  • Loading branch information
cngJo committed Dec 25, 2022
1 parent cdb0e8e commit ff6e6c9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Classes/Provider/ExtensionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ff6e6c9

Please sign in to comment.