public function JsonRpcMethod::getParams in JSON-RPC 8
Same name and namespace in other branches
- 2.x src/Annotation/JsonRpcMethod.php \Drupal\jsonrpc\Annotation\JsonRpcMethod::getParams()
The parameters for this method.
Can be a keyed array where the parameter names are the keys or an indexed array for positional parameters.
Return value
\Drupal\jsonrpc\MethodParameterInterface[]|null The method params or NULL if none are accepted.
Overrides MethodInterface::getParams
1 call to JsonRpcMethod::getParams()
- JsonRpcMethod::areParamsPositional in src/
Annotation/ JsonRpcMethod.php - Whether the parameters are by-position.
File
- src/
Annotation/ JsonRpcMethod.php, line 83
Class
- JsonRpcMethod
- Defines a JsonRpcParameterDefinition annotation object.
Namespace
Drupal\jsonrpc\AnnotationCode
public function getParams() {
return $this->params;
}