You are here

protected function SocialAuth::decode in Social Auth 8.2

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

Decodes string stored in the additional data field.

Parameters

string $data: The encoded additional data.

Return value

array The decoded data.

1 call to SocialAuth::decode()
SocialAuth::getAdditionalData in src/Entity/SocialAuth.php
Returns the serialized additional data.

File

src/Entity/SocialAuth.php, line 205

Class

SocialAuth
Defines the Social Auth entity.

Namespace

Drupal\social_auth\Entity

Code

protected function decode(string $data) {
  return json_decode($data, TRUE);
}