public function SocialAuthUser::addData in Social Auth 3.x
Same name and namespace in other branches
- 8.2 src/User/SocialAuthUser.php \Drupal\social_auth\User\SocialAuthUser::addData()
Adds a new key-value pair in customData.
Parameters
string $key: The key identifying the data.
mixed $value: The value associated to the key.
Return value
\Drupal\social_auth\User\User The User instance.
Overrides SocialAuthUserInterface::addData
File
- src/
User/ SocialAuthUser.php, line 240
Class
- SocialAuthUser
- User data used for authentication with Drupal.
Namespace
Drupal\social_auth\UserCode
public function addData($key, $value) {
$this->customData[$key] = $value;
return $this;
}