function LocaleConfigManager::isUpdatingTranslationsFromLocale

Same name in other branches
  1. 9 core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\LocaleConfigManager::isUpdatingTranslationsFromLocale()
  2. 8.9.x core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\LocaleConfigManager::isUpdatingTranslationsFromLocale()
  3. 10 core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\LocaleConfigManager::isUpdatingTranslationsFromLocale()

Indicates whether configuration translations are being updated from locale.

Return value

bool Whether or not configuration translations are currently being updated. If TRUE, LocaleConfigManager is in control of the process and the reference data is locale's storage. Changes made to active configuration and overrides in this case should not feed back to locale storage. On the other hand, when not updating from locale and configuration translations change, we need to feed back to the locale storage.

File

core/modules/locale/src/LocaleConfigManager.php, line 545

Class

LocaleConfigManager
Manages configuration supported in part by interface translation.

Namespace

Drupal\locale

Code

public function isUpdatingTranslationsFromLocale() {
    return $this->isUpdatingFromLocale;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.