You are here

public function Lingotek::__construct in Lingotek Translation 8

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

File

src/Lingotek.php, line 59
Contains \Drupal\lingotek\Lingotek.

Class

Lingotek

Namespace

Drupal\lingotek

Code

public function __construct(LingotekApiInterface $api, LanguageLocaleMapperInterface $language_locale_mapper, ConfigFactoryInterface $config) {
  $this->api = $api;
  $this->languageLocaleMapper = $language_locale_mapper;
  $this->config = $config
    ->getEditable('lingotek.settings');
}