return new JsonResponse($packagerKeys);
} #[Route(path: '/api/_action/promotion/setgroup/sorter', name: 'api.action.promotion.setgroup.sorter', methods: ['GET'], defaults: ['_acl' => ['promotion:read']])]
public function getSetGroupSorters(): JsonResponse
{ $sorterKeys =
[];
/** @var LineItemGroupSorterInterface $sorter */
foreach ($this->serviceRegistry->
getSorters() as $sorter) { $sorterKeys[] =
$sorter->
getKey();
} return new JsonResponse($sorterKeys);
}}