public static function SecondMethod::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/ SecondMethod.php, line 38
Class
- SecondMethod
- Second test method.
Namespace
Drupal\jsonrpc_test\Plugin\jsonrpc\MethodCode
public static function outputSchema() {
return [
'type' => 'number',
];
}