/**
* @internal
*/
public function __construct(private readonly FilterTagIdsService
$filterTagIdsService) { } #[Route(path: '/api/_admin/tag-filter-ids', name: 'api.admin.tag-filter-ids', defaults: ['_acl' => ['tag:read'], '_entity' => 'tag'], methods: ['POST'])]
public function filterIds(Request
$request, Criteria
$criteria, Context
$context): JsonResponse
{ $filteredTagIdsStruct =
$this->filterTagIdsService->
filterIds($request,
$criteria,
$context);
return new JsonResponse([ 'total' =>
$filteredTagIdsStruct->
getTotal(),
'ids' =>
$filteredTagIdsStruct->
getIds(),
]);
}}