deleteTranslationOverride example

$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)) {
            // Update translation data in configuration override.             $this->saveTranslationOverride($name$langcode$data);
            $count++;
          }
        }
        elseif (locale_is_translatable($langcode)) {
          // If the language code is the active storage language, we should           // update. If it is English, we should only update if English is also
Home | Imprint | This part of the site doesn't use cookies.