function AccountProxy::id
Returns the user ID or 0 for anonymous.
Return value
int The user ID.
Overrides AccountInterface::id
File
- 
              core/lib/ Drupal/ Core/ Session/ AccountProxy.php, line 90 
Class
- AccountProxy
- A proxied implementation of AccountInterface.
Namespace
Drupal\Core\SessionCode
public function id() {
  return $this->id;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
