function AnonymousUserSession::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Session/AnonymousUserSession.php \Drupal\Core\Session\AnonymousUserSession::__construct()
  2. 10 core/lib/Drupal/Core/Session/AnonymousUserSession.php \Drupal\Core\Session\AnonymousUserSession::__construct()
  3. 11.x core/lib/Drupal/Core/Session/AnonymousUserSession.php \Drupal\Core\Session\AnonymousUserSession::__construct()

Constructs a new anonymous user session.

Intentionally don't allow parameters to be passed in like UserSession.

Overrides UserSession::__construct

File

core/lib/Drupal/Core/Session/AnonymousUserSession.php, line 15

Class

AnonymousUserSession
An account implementation representing an anonymous user.

Namespace

Drupal\Core\Session

Code

public function __construct() {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.