You are here

public function EntityParameterFactory::getOutputValidator in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x src/ParameterFactory/EntityParameterFactory.php \Drupal\jsonrpc\ParameterFactory\EntityParameterFactory::getOutputValidator()

File

src/ParameterFactory/EntityParameterFactory.php, line 70

Class

EntityParameterFactory
A factory to create loaded entities from entity type & UUID user input.

Namespace

Drupal\jsonrpc\ParameterFactory

Code

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