public function LocaleConfigManager::deleteTranslationData

Deletes translated configuration data.

Parameters

string $name: Configuration object name.

string $langcode: Language code.

1 call to LocaleConfigManager::deleteTranslationData()
LocaleConfigManager::deleteComponentTranslations in drupal/core/modules/locale/lib/Drupal/locale/LocaleConfigManager.php
Deletes configuration translations for uninstalled components.

File

drupal/core/modules/locale/lib/Drupal/locale/LocaleConfigManager.php, line 134
Contains \Drupal\locale\LocaleConfigManager.

Class

LocaleConfigManager
Manages localized configuration type plugins.

Namespace

Drupal\locale

Code

public function deleteTranslationData($name, $langcode) {
  $locale_name = self::localeConfigName($langcode, $name);
  $this->configStorage
    ->delete($locale_name);
}