You are here

public function SocialApi::getToken in Social API 3.x

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

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);
}