You are here

public function RpcResponseFactory::getInputValidator in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x src/Shaper/RpcResponseFactory.php \Drupal\jsonrpc\Shaper\RpcResponseFactory::getInputValidator()

File

src/Shaper/RpcResponseFactory.php, line 52

Class

RpcResponseFactory
Creates RPC Response objects.

Namespace

Drupal\jsonrpc\Shaper

Code

public function getInputValidator() {
  return new CollectionOfValidators(new InstanceofValidator(Response::class));
}