return $extensions;
} public function loadFromAppCollection(Context
$context, AppCollection
$collection): ExtensionCollection
{ $data =
[];
foreach ($collection as $app) { $data[] =
$this->
prepareAppData($context,
$app);
} $registeredApps =
$this->
loadFromListingArray($context,
$data);
// Enrich apps from filesystem
$localApps =
$this->
loadLocalAppsCollection($context);
foreach ($localApps as $name =>
$app) { if ($registeredApps->
has($name)) { /** @var ExtensionStruct $registeredApp */
$registeredApp =
$registeredApps->
get($name);
$registeredApp->
setIsTheme($app->
isTheme());