public function SocialAuthUser::getData in Social Auth 3.x
Same name and namespace in other branches
- 8.2 src/User/SocialAuthUser.php \Drupal\social_auth\User\SocialAuthUser::getData()
Gets a value from customData.
Parameters
string $key: The key identifying the data.
Return value
mixed|null The custom data or null if not found.
Overrides SocialAuthUserInterface::getData
File
- src/
User/ SocialAuthUser.php, line 249
Class
- SocialAuthUser
- User data used for authentication with Drupal.
Namespace
Drupal\social_auth\UserCode
public function getData($key) {
return $this->customData[$key] ?? NULL;
}