public function SocialAuth::getAdditionalData in Social Auth 8.2
Same name and namespace in other branches
- 3.x src/Entity/SocialAuth.php \Drupal\social_auth\Entity\SocialAuth::getAdditionalData()
Returns the serialized additional data.
Return value
array The additional data.
File
- src/
Entity/ SocialAuth.php, line 74
Class
- SocialAuth
- Defines the Social Auth entity.
Namespace
Drupal\social_auth\EntityCode
public function getAdditionalData() {
return $this
->hasField('additional_data') && !$this
->get('additional_data')
->isEmpty() ? $this
->decode($this
->get('additional_data')->value) : [];
}