public function UserBCDecorator::getSessionId

Returns the session ID.

Return value

string|NULL The session ID or NULL if this user does not have an active session.

Overrides AccountInterface::getSessionId

File

drupal/core/modules/user/lib/Drupal/user/UserBCDecorator.php, line 54
Contains \Drupal\user\UserBCDecorator.

Class

UserBCDecorator
Defines the user specific entity BC decorator.

Namespace

Drupal\user

Code

public function getSessionId() {
  return $this->decorated
    ->getSessionId();
}