You are here

public function Response::setResultSchema in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x src/Object/Response.php \Drupal\jsonrpc\Object\Response::setResultSchema()

Sets the schema for the output response.

Parameters

array|null $result_schema: The schema of the result.

File

src/Object/Response.php, line 161

Class

Response
Response object to help implement JSON RPC's spec for response objects.

Namespace

Drupal\jsonrpc\Object

Code

public function setResultSchema($result_schema) {
  $this->resultSchema = $result_schema;
}