public function LocaleConfigManager::saveTranslationData

Saves translated configuration data.

Parameters

string $name: Configuration object name.

string $langcode: Language code.

array $data: Configuration data to be saved, that will be only the translated values.

File

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

Class

LocaleConfigManager
Manages localized configuration type plugins.

Namespace

Drupal\locale

Code

public function saveTranslationData($name, $langcode, array $data) {
  $locale_name = self::localeConfigName($langcode, $name);
  $this->configStorage
    ->write($locale_name, $data);
}