You are here

protected function LocaleConfigManager::deleteTranslationOverride in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/src/LocaleConfigManager.php \Drupal\locale\LocaleConfigManager::deleteTranslationOverride()

Deletes translated configuration data.

Parameters

string $name: Configuration object name.

string $langcode: Language code.

1 call to LocaleConfigManager::deleteTranslationOverride()
LocaleConfigManager::updateConfigTranslations in core/modules/locale/src/LocaleConfigManager.php
Updates all configuration translations for the names / languages provided.

File

core/modules/locale/src/LocaleConfigManager.php, line 276
Contains \Drupal\locale\LocaleConfigManager.

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;
}