You are here

public function RpcResponseFactory::getInputValidator in JSON-RPC 2.x

Same name and namespace in other branches
  1. 8 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));
}