private filterApiResponse ( Elgg\Services\AjaxResponse $api_response, string $hook_type = '' ) : Elgg\Services\AjaxResponse | ||
$api_response | Elgg\Services\AjaxResponse | The API Response |
$hook_type | string | The hook type. If given, the response will be filtered by hook |
return | Elgg\Services\AjaxResponse |