foreach ($mappedExtensions as $storeExtension) { if ($storeExtension->
getType() !== ExtensionStruct::EXTENSION_TYPE_PLUGIN
) { continue;
} /** @var PluginEntity|null $plugin */
$plugin =
$pluginCollection->
filterByProperty('name',
$storeExtension->
getName())->
first();
$storeExtension->
assign([ 'active' =>
$plugin ?
$plugin->
getActive() : false,
'installed' =>
$plugin ?
((bool) $plugin->
getInstalledAt()) : false,
]);
} foreach ($mappedExtensions as $storeExtension) { if ($storeExtension->
getType() !== ExtensionStruct::EXTENSION_TYPE_APP
) { continue;
} /** @var AppEntity|null $app */
$app =
$appCollection->
filterByProperty('name',
$storeExtension->
getName())->
first();