You are here

public function TwitterAccount::getAuth in Twitter 8

Returns an array with the authentication tokens.

Return value

array Public function getAuth array with the oauth token key and secret.

File

src/Plugin/Core/Entity/TwitterAccount.php, line 63

Class

TwitterAccount
Defines the twitter account entity class.

Namespace

Drupal\twitter\Plugin\Core\Entity

Code

public function getAuth() {
  return [
    'oauth_token' => $this->oauth_token,
    'oauth_token_secret' => $this->oauth_token_secret,
  ];
}