LocaleConfigManager::deleteTranslationOverride

protected LocaleConfigManager::deleteTranslationOverride($name, $langcode)

Deletes translated configuration data.

Parameters

string $name: Configuration object name.

string $langcode: Language code.

File

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

Class

LocaleConfigManager
Manages configuration supported in part by interface translation.

Namespace

Drupal\locale

Code

protected function deleteTranslationOverride($name, $langcode) {
  $this->isUpdatingFromLocale = TRUE;
  $this->languageManager->getLanguageConfigOverride($langcode, $name)->delete();
  $this->isUpdatingFromLocale = FALSE;
}
doc_Drupal
2016-10-29 09:23:53
Comments
Leave a Comment

Please login to continue.