public function AccountProxy::id in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Session/AccountProxy.php \Drupal\Core\Session\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 72 - Contains \Drupal\Core\Session\AccountProxy.
Class
- AccountProxy
- A proxied implementation of AccountInterface.
Namespace
Drupal\Core\SessionCode
public function id() {
return $this
->getAccount()
->id();
}