You are here

public function LingotekConfigSubscriber::__construct in Lingotek Translation 8

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

Constructs a LingotekConfigSubscriber.

Parameters

\Drupal\lingotek\LingotekConfigTranslationServiceInterface $translation_service: The Lingotek config translation service.

\Drupal\config_translation\ConfigMapperManagerInterface $mapper_manager: The configuration mapper manager.

File

src/EventSubscriber/LingotekConfigSubscriber.php, line 52
Contains \Drupal\lingotek\EventSubscriber\LingotekConfigSubscriber.

Class

LingotekConfigSubscriber
Updates config Lingotek translation status when saved.

Namespace

Drupal\lingotek\EventSubscriber

Code

public function __construct(LingotekConfigTranslationServiceInterface $translation_service, ConfigMapperManagerInterface $mapper_manager) {
  $this->translationService = $translation_service;
  $this->mapperManager = $mapper_manager;
  $this->mappers = $mapper_manager
    ->getMappers();
}