return new JsonResponse([ 'actions' =>
$this->actionButtonLoader->
loadActionButtonsForView($entity,
$view,
$context),
]);
} #[Route(path: 'api/app-system/action-button/run/{id}', name: 'api.app_system.action_button.run', methods: ['POST'], defaults: ['_acl' => ['app']])]
public function runAction(string
$id, Request
$request, Context
$context): Response
{ $entityIds =
$request->
get('ids',
[]);
$action =
$this->appActionFactory->
loadAppAction($id,
$entityIds,
$context);
return $this->executor->
execute($action,
$context);
} #[Route(path: 'api/app-system/modules', name: 'api.app_system.modules', methods: ['GET'])]
public function getModules(Context
$context): Response
{ return new JsonResponse(['modules' =>
$this->moduleLoader->
loadModules($context)]);
}}