You are here

public function LingotekHttp::getCurrentToken in Lingotek Translation 3.8.x

Same name and namespace in other branches
  1. 8 src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
  2. 8.2 src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
  3. 4.0.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
  4. 3.0.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
  5. 3.1.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
  6. 3.2.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
  7. 3.3.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
  8. 3.4.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
  9. 3.5.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
  10. 3.6.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
  11. 3.7.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()

Gets the current configured token.

Return value

string The token.

Overrides LingotekHttpInterface::getCurrentToken

1 call to LingotekHttp::getCurrentToken()
LingotekHttp::getDefaultHeaders in src/Remote/LingotekHttp.php
Get the headers that are used in every request.

File

src/Remote/LingotekHttp.php, line 138

Class

LingotekHttp
Lingotek HTTP implementation using Guzzle.

Namespace

Drupal\lingotek\Remote

Code

public function getCurrentToken() {
  return $this->config
    ->get('account.access_token');
}