LocaleConfigManager::saveTranslationActive

protected LocaleConfigManager::saveTranslationActive($name, array $data)

Saves translated configuration data.

Parameters

string $name: Configuration object name.

array $data: Configuration data to be saved with translations merged in.

File

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

Class

LocaleConfigManager
Manages configuration supported in part by interface translation.

Namespace

Drupal\locale

Code

protected function saveTranslationActive($name, array $data) {
  $this->isUpdatingFromLocale = TRUE;
  $this->configFactory->getEditable($name)->setData($data)->save();
  $this->isUpdatingFromLocale = FALSE;
}
doc_Drupal
2016-10-29 09:23:55
Comments
Leave a Comment

Please login to continue.