UserSession::__construct

public UserSession::__construct(array $values = array())

Constructs a new user session.

Parameters

array $values: Array of initial values for the user session.

File

core/lib/Drupal/Core/Session/UserSession.php, line 76

Class

UserSession
An implementation of the user account interface for the global user.

Namespace

Drupal\Core\Session

Code

public function __construct(array $values = array()) {
  foreach ($values as $key => $value) {
    $this->$key = $value;
  }
}
doc_Drupal
2016-10-29 09:53:03
Comments
Leave a Comment

Please login to continue.