You are here

public function Client::id in OAuth2 Server 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Client.php \Drupal\oauth2_server\Entity\Client::id()

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides EntityBase::id

File

src/Entity/Client.php, line 118

Class

Client
Defines the OAuth2 client entity.

Namespace

Drupal\oauth2_server\Entity

Code

public function id() {
  return isset($this->client_id) ? $this->client_id : NULL;
}