You are here

public function Response::isResultResponse in JSON-RPC 8

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

Checks if this is an error or result response.

Return value

bool True if it's a result response.

File

src/Object/Response.php, line 122

Class

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

Namespace

Drupal\jsonrpc\Object

Code

public function isResultResponse() {
  return !$this
    ->isErrorResponse();
}