You are here

public function JsonRpcParameterDefinition::getId in JSON-RPC 2.x

Same name and namespace in other branches
  1. 8 src/Annotation/JsonRpcParameterDefinition.php \Drupal\jsonrpc\Annotation\JsonRpcParameterDefinition::getId()

The name of the parameter if the params are by-name, an offset otherwise.

Return value

string|int The ID.

Overrides ParameterDefinitionInterface::getId

File

src/Annotation/JsonRpcParameterDefinition.php, line 105

Class

JsonRpcParameterDefinition
Defines a JsonRpcParameterDefinition annotation object.

Namespace

Drupal\jsonrpc\Annotation

Code

public function getId() {
  return $this->id;
}