public function Request::hasParams in JSON-RPC 8
Same name and namespace in other branches
- 2.x src/Object/Request.php \Drupal\jsonrpc\Object\Request::hasParams()
Checks if the request has parameters.
Return value
bool True if it has parameters.
1 call to Request::hasParams()
- Request::getParameter in src/
Object/ Request.php - Gets a parameter by key.
File
- src/
Object/ Request.php, line 130
Class
- Request
- Request object to help implement JSON RPC's spec for request objects.
Namespace
Drupal\jsonrpc\ObjectCode
public function hasParams() {
return !(is_null($this->params) || $this->params
->isEmpty());
}