public LocaleConfigManager::deleteLanguageTranslations($langcode)
Deletes configuration for language.
Parameters
string $langcode: Language code to delete.
File
- core/modules/locale/src/LocaleConfigManager.php, line 339
Class
- LocaleConfigManager
- Manages configuration supported in part by interface translation.
Namespace
Drupal\locale
Code
public function deleteLanguageTranslations($langcode) { $this->isUpdatingFromLocale = TRUE; $storage = $this->languageManager->getLanguageConfigOverrideStorage($langcode); foreach ($storage->listAll() as $name) { $this->languageManager->getLanguageConfigOverride($langcode, $name)->delete(); } $this->isUpdatingFromLocale = FALSE; }
Please login to continue.