You are here

public function SocialApi::getToken in Social API 8.2

Same name and namespace in other branches
  1. 3.x src/Entity/SocialApi.php \Drupal\social_api\Entity\SocialApi::getToken()

Returns the unencrypted, serialized access token.

Return value

string The serialized access token.

File

src/Entity/SocialApi.php, line 70

Class

SocialApi
Defines a base class for Social API content entities.

Namespace

Drupal\social_api\Entity

Code

public function getToken() {
  $token = $this
    ->get('token')->value;
  return $this
    ->decryptToken($token);
}