Send a JSON HTTP response with the given output
public respondFromOutput ( mixed $output, string $hook_type = '', boolean $try_decode = true ) : Symfony\Component\HttpFoundation\JsonResponse | ||
$output | mixed | Output from a page/action handler |
$hook_type | string | The hook type. If given, the response will be filtered by hook |
$try_decode | boolean | Try to convert a JSON string back to an abject |
Résultat | Symfony\Component\HttpFoundation\JsonResponse |