public function JsonRpcParameterDefinition::getSchema in JSON-RPC 2.x
Same name and namespace in other branches
- 8 src/Annotation/JsonRpcParameterDefinition.php \Drupal\jsonrpc\Annotation\JsonRpcParameterDefinition::getSchema()
Gets the parameter schema.
Can be derived from the type when the schema property is not defined.
Return value
array The schema.
Overrides ParameterDefinitionInterface::getSchema
File
- src/
Annotation/ JsonRpcParameterDefinition.php, line 78
Class
- JsonRpcParameterDefinition
- Defines a JsonRpcParameterDefinition annotation object.
Namespace
Drupal\jsonrpc\AnnotationCode
public function getSchema() {
if (!isset($this->schema) && isset($this->factory)) {
$this->schema = call_user_func_array([
$this->factory,
'schema',
], [
$this,
]);
}
return $this->schema;
}