public static function EntityParameterFactory::schema in JSON-RPC 8
Same name and namespace in other branches
- 2.x src/ParameterFactory/EntityParameterFactory.php \Drupal\jsonrpc\ParameterFactory\EntityParameterFactory::schema()
An array representing the JSON Schema for acceptable input to the factory.
Parameters
\Drupal\jsonrpc\ParameterDefinitionInterface $parameter_definition: A parameter definition for the method parameter being constructed.
Return value
array The JSON Schema.
Overrides ParameterFactoryInterface::schema
File
- src/
ParameterFactory/ EntityParameterFactory.php, line 57
Class
- EntityParameterFactory
- A factory to create loaded entities from entity type & UUID user input.
Namespace
Drupal\jsonrpc\ParameterFactoryCode
public static function schema(ParameterDefinitionInterface $parameter_definition = NULL) {
return [
'type' => 'object',
'properties' => [
'type' => [
'type' => 'string',
],
'uuid' => [
'type' => 'string',
],
],
];
}