public function UserSession::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Session/UserSession.php \Drupal\Core\Session\UserSession::__construct()
Constructs a new user session.
Parameters
array $values: Array of initial values for the user session.
1 method overrides UserSession::__construct()
- AnonymousUserSession::__construct in core/
lib/ Drupal/ Core/ Session/ AnonymousUserSession.php - Constructs a new anonymous user session.
File
- core/
lib/ Drupal/ Core/ Session/ UserSession.php, line 81 - Contains \Drupal\Core\Session\UserSession.
Class
- UserSession
- An implementation of the user account interface for the global user.
Namespace
Drupal\Core\SessionCode
public function __construct(array $values = array()) {
foreach ($values as $key => $value) {
$this->{$key} = $value;
}
}