You are here

public function SocialAuth::getAdditionalData in Social Auth 8.2

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

Code

public function getAdditionalData() {
  return $this
    ->hasField('additional_data') && !$this
    ->get('additional_data')
    ->isEmpty() ? $this
    ->decode($this
    ->get('additional_data')->value) : [];
}