$data =
[ 'localId' =>
$app->
getId(),
'description' =>
$app->
getTranslation('description'
),
'name' =>
$app->
getName(),
'label' =>
$app->
getTranslation('label'
),
'producerName' =>
$app->
getAuthor(),
'license' =>
$app->
getLicense(),
'version' =>
$app->
getVersion(),
'privacyPolicyLink' =>
$app->
getPrivacy(),
'iconRaw' =>
$app->
getIcon(),
'installedAt' =>
$app->
getCreatedAt(),
'permissions' =>
$app->
getAclRole() !== null ?
$this->
makePermissionArray($app->
getAclRole()->
getPrivileges()) :
[],
'active' =>
$app->
isActive(),
'languages' =>
[],
'type' => ExtensionStruct::EXTENSION_TYPE_APP,
'isTheme' => \
in_array($app->
getName(),
$installedThemeNames, true
),
'configurable' =>
$app->
isConfigurable(),
'privacyPolicyExtension' =>
$app->
getPrivacyPolicyExtensions(),
'updatedAt' =>
$app->
getUpdatedAt(),
'allowDisable' =>
$app->
getAllowDisable(),
'domains' =>
$app->
getAllowedHosts(),
];