You are here

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

Same name and namespace in other branches
  1. 8 src/Object/Request.php \Drupal\jsonrpc\Object\Request::isNotification()

Checks if this is a notification request.

Return value

bool True if it's a notification.

File

src/Object/Request.php, line 140

Class

Request
Request object to help implement JSON RPC's spec for request objects.

Namespace

Drupal\jsonrpc\Object

Code

public function isNotification() {
  return $this->id === FALSE;
}