$active_langcode =
$this->
getActiveConfigLangcode($name);
$active =
$this->configStorage->
read($name);
foreach ($langcodes as $langcode) { $processed =
$this->
processTranslatableData($name,
$active,
$translatable,
$langcode);
// If the language code is not the same as the active storage
// language, we should update the configuration override.
if ($langcode !=
$active_langcode) { $override =
$this->languageManager->
getLanguageConfigOverride($langcode,
$name);
// Filter out locale managed configuration keys so that translations
// removed from Locale will be reflected in the config override.
$data =
$this->
filterOverride($override->
get(),
$translatable);
if (!
empty($processed)) { // Merge in the Locale managed translations with existing data.
$data = NestedArray::
mergeDeepArray([$data,
$processed], TRUE
);
} if (empty($data) && !
$override->
isNew()) { // The configuration override contains Locale overrides that no
// longer exist.
$this->
deleteTranslationOverride($name,
$langcode);
$count++;
} elseif (!
empty($data)) {