public function LingotekHttp::getCurrentToken in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8 src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
- 8.2 src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
- 4.0.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
- 3.0.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
- 3.1.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
- 3.2.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
- 3.3.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
- 3.4.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
- 3.6.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
- 3.7.x src/Remote/LingotekHttp.php \Drupal\lingotek\Remote\LingotekHttp::getCurrentToken()
- 3.8.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\RemoteCode
public function getCurrentToken() {
return $this->config
->get('account.access_token');
}