You are here

public static function ListPermissions::outputSchema in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x modules/jsonrpc_core/src/Plugin/jsonrpc/Method/ListPermissions.php \Drupal\jsonrpc_core\Plugin\jsonrpc\Method\ListPermissions::outputSchema()

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

modules/jsonrpc_core/src/Plugin/jsonrpc/Method/ListPermissions.php, line 36

Class

ListPermissions
RPC method to list all the permissions.

Namespace

Drupal\jsonrpc_core\Plugin\jsonrpc\Method

Code

public static function outputSchema() {

  // TODO: Fix the schema.
  return [
    'type' => 'foo',
  ];
}