public function JsonRpcParameterDefinition::getSchema in JSON-RPC 8
Same name and namespace in other branches
- 2.x 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;
}