$limit,
$context,
$request->request->
all('filters'
),
$request->request->
all('sort'
) ) );
} #[Route(path: '/api/_action/snippet/filter', name: 'api.action.snippet.get.filter', methods: ['GET'])]
public function getFilterItems(Context
$context): Response
{ $filter =
$this->snippetService->
getRegionFilterItems($context);
return new JsonResponse([ 'total' => \
count($filter),
'data' =>
$filter,
]);
} #[Route(path: '/api/_action/snippet-set/baseFile', name: 'api.action.snippet-set.base-file', methods: ['GET'])]
public function getBaseFiles(): Response
{ $files =
$this->snippetFileCollection->
getFilesArray();