You are here

public function SocialAuth::setAdditionalData in Social Auth 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/SocialAuth.php \Drupal\social_auth\Entity\SocialAuth::setAdditionalData()

Sets the additional data.

Parameters

array $data: The additional data.

Return value

\Drupal\social_auth\Entity\SocialAuth Drupal Social Auth Entity.

File

src/Entity/SocialAuth.php, line 62

Class

SocialAuth
Defines the Social Auth entity.

Namespace

Drupal\social_auth\Entity

Code

public function setAdditionalData(array $data) {
  $this
    ->set('additional_data', $this
    ->encode($data));
  return $this;
}