You are here

public function TwitterAccount::isAuth in Twitter 8

Checks whether the account is authenticated or not.

Return value

bool boolean TRUE when the account is authenticated.

File

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

Class

TwitterAccount
Defines the twitter account entity class.

Namespace

Drupal\twitter\Plugin\Core\Entity

Code

public function isAuth() {
  return !empty($this->oauth_token) && !empty($this->oauth_token_secret);
}