You are here

public function AuthSessionDataHandler::set in Open Social 8.3

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_extra/src/AuthSessionDataHandler.php \Drupal\social_auth_extra\AuthSessionDataHandler::set()
  2. 8 modules/custom/social_auth_extra/src/AuthSessionDataHandler.php \Drupal\social_auth_extra\AuthSessionDataHandler::set()
  3. 8.2 modules/custom/social_auth_extra/src/AuthSessionDataHandler.php \Drupal\social_auth_extra\AuthSessionDataHandler::set()
  4. 8.4 modules/custom/social_auth_extra/src/AuthSessionDataHandler.php \Drupal\social_auth_extra\AuthSessionDataHandler::set()
  5. 8.5 modules/custom/social_auth_extra/src/AuthSessionDataHandler.php \Drupal\social_auth_extra\AuthSessionDataHandler::set()
  6. 8.6 modules/custom/social_auth_extra/src/AuthSessionDataHandler.php \Drupal\social_auth_extra\AuthSessionDataHandler::set()
  7. 8.7 modules/custom/social_auth_extra/src/AuthSessionDataHandler.php \Drupal\social_auth_extra\AuthSessionDataHandler::set()
  8. 8.8 modules/custom/social_auth_extra/src/AuthSessionDataHandler.php \Drupal\social_auth_extra\AuthSessionDataHandler::set()

Set a value in the persistent data store.

Parameters

string $key: The key to store the value by.

mixed $value: The value to store.

Return value

null Returns null.

Overrides AuthDataHandlerInterface::set

File

modules/custom/social_auth_extra/src/AuthSessionDataHandler.php, line 48

Class

AuthSessionDataHandler
Class AuthSessionDataHandler.

Namespace

Drupal\social_auth_extra

Code

public function set($key, $value) {
  $this->session
    ->set($this->sessionPrefix . $key, $value);
}