public function JsonRpcParameterDefinition::isRequired in JSON-RPC 8
Same name and namespace in other branches
- 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\AnnotationCode
public function isRequired() {
return isset($this->required) ? $this->required : FALSE;
}