You are here

public function RpcRequestFactory::getOutputValidator in JSON-RPC 2.x

Same name and namespace in other branches
  1. 8 src/Shaper/RpcRequestFactory.php \Drupal\jsonrpc\Shaper\RpcRequestFactory::getOutputValidator()

File

src/Shaper/RpcRequestFactory.php, line 74

Class

RpcRequestFactory
Creates RPC Request objects.

Namespace

Drupal\jsonrpc\Shaper

Code

public function getOutputValidator() {
  return new CollectionOfValidators(new InstanceofValidator(Request::class));
}