diff --git a/core/modules/config_translation/lib/Drupal/config_translation/Form/ConfigTranslationFormBase.php b/core/modules/config_translation/lib/Drupal/config_translation/Form/ConfigTranslationFormBase.php index 5fca7b1..8d76ede 100644 --- a/core/modules/config_translation/lib/Drupal/config_translation/Form/ConfigTranslationFormBase.php +++ b/core/modules/config_translation/lib/Drupal/config_translation/Form/ConfigTranslationFormBase.php @@ -397,22 +397,19 @@ protected function setConfig(Language $language, Config $base_config, Config $co // for providing us with a translation string. We iterate through the // $key string to check if we have a schema definition for that. $types = explode(".", $key); - krsort($types); - foreach ($types as $type) { - // If there is a schema definition, run the - // hook_config_translation_type_info_alter. - if (isset($schema[$type])) { - $element = $schema[$type]; - $definition = $element->getDataDefinition(); - - // Invoke hook_config_translation_type_info_alter() implementations to - // alter the configuration types. - $definitions = array( - $definition['type'] => &$definition, - ); - $this->moduleHandler->alter('config_translation_type_info', $definitions); - break; - } + $type = array_shift($types); + // If there is a schema definition, run the + // hook_config_translation_type_info_alter. + if (isset($schema[$type])) { + $element = $schema[$type]; + $definition = $element->getDataDefinition(); + + // Invoke hook_config_translation_type_info_alter() implementations to + // alter the configuration types. + $definitions = array( + $definition['type'] => &$definition, + ); + $this->moduleHandler->alter('config_translation_type_info', $definitions); } // If form_element_class is set, create a new object of this class and