protected static function SocialAuth::encode in Social Auth 8.2
Same name and namespace in other branches
- 3.x src/Entity/SocialAuth.php \Drupal\social_auth\Entity\SocialAuth::encode()
 
Encodes array to store in the additional data field.
Parameters
array $data: The additional data.
Return value
string The serialized data.
2 calls to SocialAuth::encode()
- SocialAuth::preCreate in src/
Entity/ SocialAuth.php  - Changes the values of an entity before it is created.
 - SocialAuth::setAdditionalData in src/
Entity/ SocialAuth.php  - Sets the additional data.
 
File
- src/
Entity/ SocialAuth.php, line 192  
Class
- SocialAuth
 - Defines the Social Auth entity.
 
Namespace
Drupal\social_auth\EntityCode
protected static function encode(array $data) {
  return json_encode($data);
}