You are here

protected function LingotekHttp::getBaseUrl in Lingotek Translation 8

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

File

src/Remote/LingotekHttp.php, line 123

Class

LingotekHttp

Namespace

Drupal\lingotek\Remote

Code

protected function getBaseUrl() {
  $base_url = $this->config
    ->get('account.sandbox_host');
  if ($this->config
    ->get('account.use_production')) {
    $base_url = $this->config
      ->get('account.host');
  }
  return $base_url;
}