$context =
new ListingRequest( $this->
getLocale(),
$this->
getVersion(),
(int) $this->
Request()->
getParam('offset', 0
),
(int) $this->
Request()->
getParam('limit', 30
),
$this->
Request()->
getParam('filter',
[]),
$this->
getListingSorting() );
if ($this->
isApiAvailable()) { $plugins =
$this->
get('shopware_plugininstaller.plugin_service_view'
)->
getLocalListing($context);
} else { $plugins =
$this->
get(PluginLocalService::
class)->
getListing($context)->
getPlugins();
} $this->
View()->
assign([ 'success' => true,
'data' =>
array_values($plugins),
'error' =>
$error,
]);
}