You are here

public function Server::id in OAuth2 Server 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Server.php \Drupal\oauth2_server\Entity\Server::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

2 calls to Server::id()
Server::delete in src/Entity/Server.php
Deletes an entity permanently.
Server::postSave in src/Entity/Server.php
Acts on a saved entity before the insert or update hook is invoked.

File

src/Entity/Server.php, line 104

Class

Server
Defines the OAuth2 server entity.

Namespace

Drupal\oauth2_server\Entity

Code

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