You are here

public function Request::hasParams in JSON-RPC 2.x

Same name and namespace in other branches
  1. 8 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\Object

Code

public function hasParams() {
  return !(is_null($this->params) || $this->params
    ->isEmpty());
}