public function LingotekConfigTranslationService::markConfigTranslationsAsDirty in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
- 4.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
- 3.0.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
- 3.1.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
- 3.2.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
- 3.3.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
- 3.4.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
- 3.5.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
- 3.6.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
- 3.7.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
- 3.8.x src/LingotekConfigTranslationService.php \Drupal\lingotek\LingotekConfigTranslationService::markConfigTranslationsAsDirty()
Marks the translation status as dirty if they exist.
Parameters
ConfigNamesMapper $mapper: The mapper which status we want to change.
Return value
Overrides LingotekConfigTranslationServiceInterface::markConfigTranslationsAsDirty
File
- src/
LingotekConfigTranslationService.php, line 1035 - Contains \Drupal\lingotek\LingotekConfigTranslationService.
Class
- LingotekConfigTranslationService
- Service for managing Lingotek configuration translations.
Namespace
Drupal\lingotekCode
public function markConfigTranslationsAsDirty(ConfigNamesMapper $mapper) {
$target_languages = $this->languageManager
->getLanguages();
$source_langcode = $mapper
->getLangcode();
foreach ($target_languages as $langcode => $language) {
if ($langcode != $source_langcode && ($current_status = $this
->getConfigTargetStatus($mapper, $langcode))) {
if ($current_status == Lingotek::STATUS_CURRENT) {
$this
->setConfigTargetStatus($mapper, $langcode, Lingotek::STATUS_EDITED);
}
}
}
}