You are here

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

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