diff -u b/core/modules/migrate_drupal/src/Plugin/migrate/source/d6/i18nVariable.php b/core/modules/migrate_drupal/src/Plugin/migrate/source/d6/i18nVariable.php --- b/core/modules/migrate_drupal/src/Plugin/migrate/source/d6/i18nVariable.php +++ b/core/modules/migrate_drupal/src/Plugin/migrate/source/d6/i18nVariable.php @@ -49,20 +49,20 @@ * @return array * An associative array where the keys are the variables specified in the * plugin configuration and the values are the values found in the source. - * A key/value pair is added for the language code. Only those values are + * A key/value pair is added for the language code. Only those values are * returned that are actually in the database. */ protected function values() { $values = []; $result = $this->prepareQuery()->execute()->FetchAllAssoc('language'); - foreach ($result as $i18nvariable) { - $values[]['language'] = $i18nvariable->language; + foreach ($result as $i18n_variable) { + $values[]['language'] = $i18n_variable->language; } $result = $this->prepareQuery()->execute()->FetchAll(); - foreach ($result as $i18nvariable) { + foreach ($result as $i18n_variable) { foreach ($values as $key => $value) { - if ($values[$key]['language'] === $i18nvariable->language ) { - $values[$key][$i18nvariable->name] = unserialize($i18nvariable->value); + if ($values[$key]['language'] === $i18n_variable->language) { + $values[$key][$i18n_variable->name] = unserialize($i18n_variable->value); break; } }