Automattic\WooCommerce\Vendor\GraphQL\Server
Helper::emitResponse
Method of the class: Helper{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->emitResponse( $jsonSerializable ): void;
- $jsonSerializable(array
|\JsonSerializable) (required) - .
Helper::emitResponse() Helper::emitResponse code WC 11.1.2
protected function emitResponse($jsonSerializable): void
{
header('Content-Type: application/json;charset=utf-8');
echo json_encode($jsonSerializable, JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR);
}