You are here

public function JsonRpcParameterDefinition::isRequired in JSON-RPC 8

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

Whether the parameter is required.

Return value

bool True if this is a required parameter.

Overrides ParameterDefinitionInterface::isRequired

File

src/Annotation/JsonRpcParameterDefinition.php, line 71

Class

JsonRpcParameterDefinition
Defines a JsonRpcParameterDefinition annotation object.

Namespace

Drupal\jsonrpc\Annotation

Code

public function isRequired() {
  return isset($this->required) ? $this->required : FALSE;
}