1.20.x user.entity.inc public User::id()

Implements EntityInterface::id().

Overrides EntityInterface::id

File

modules/user/user.entity.inc, line 132
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;
}