#[Route(path: '/api/_action/store/language-plugins', name: 'api.custom.store.language-plugins', methods: ['GET'])]
public function getLanguagePluginList(Context
$context): JsonResponse
{ /** @var PluginCollection $plugins */
$plugins =
$this->pluginRepo->
search(new Criteria(),
$context)->
getEntities();
/** @var AppCollection $apps */
$apps =
$this->appRepo->
search(new Criteria(),
$context)->
getEntities();
try { $languagePlugins =
$this->frwService->
getLanguagePlugins($plugins,
$apps,
$context);
} catch (ClientException
$exception) { throw new StoreApiException($exception);
} return new JsonResponse([ 'items' =>
$languagePlugins,
'total' => \
count($languagePlugins),
]);
} #[Route(path: '/api/_action/store/demo-data-plugins', name: 'api.custom.store.demo-data-plugins', methods: ['GET'])]