return $appModules;
} /**
* @return list<Module>
*/
private function formatModules(AppEntity
$app, Context
$context): array
{ $modules =
[];
foreach ($app->
getModules() as $module) { $module['source'
] =
$this->
getModuleUrlWithQuery($app,
$module,
$context);
$modules[] =
$module;
} return $modules;
} /**
* @return array{source: string}|null
*/
private function formatMainModule(AppEntity
$app, Context
$context): ?array
{