You are here

public static function RawParameterFactory::schema in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x src/ParameterFactory/RawParameterFactory.php \Drupal\jsonrpc\ParameterFactory\RawParameterFactory::schema()

An array representing the JSON Schema for acceptable input to the factory.

Parameters

\Drupal\jsonrpc\ParameterDefinitionInterface $parameter_definition: A parameter definition for the method parameter being constructed.

Return value

array The JSON Schema.

Overrides ParameterFactoryInterface::schema

File

src/ParameterFactory/RawParameterFactory.php, line 18

Class

RawParameterFactory
Class RawParameterFactory just returns the raw parameter.

Namespace

Drupal\jsonrpc\ParameterFactory

Code

public static function schema(ParameterDefinitionInterface $parameter_definition) {
  return $parameter_definition
    ->getSchema();
}