You are here

public function SocialAuthUser::addData in Social Auth 8.2

Same name and namespace in other branches
  1. 3.x 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\User

Code

public function addData($key, $value) {
  $this->customData[$key] = $value;
  return $this;
}