1 user.entity.inc public User::id()

Implements EntityInterface::id().

Overrides EntityInterface::id

File

core/modules/user/user.entity.inc, line 141
Entity classes and controllers for User module.

Class

User
Defines the user entity class.

Code

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