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
1 2 3 4 5 | public function __construct( array $values = array ()) { foreach ( $values as $key => $value ) { $this -> $key = $value ; } } |
Please login to continue.