public static function ThirdMethod::outputSchema in JSON-RPC 2.x
Provides the schema that describes the results of the RPC method.
Use NULL if the method does not provide results (is a notification).
Return value
null|array The JSON Schema or a null in case of a notification.
Overrides JsonRpcMethodBase::outputSchema
File
- tests/
modules/ jsonrpc_test/ src/ Plugin/ jsonrpc/ Method/ ThirdMethod.php, line 38
Class
- ThirdMethod
- Third test method.
Namespace
Drupal\jsonrpc_test\Plugin\jsonrpc\MethodCode
public static function outputSchema() {
return [
// Schema is invalid intentionally.
'type' => 'number',
];
}