diff --git a/core/modules/language/migration_templates/default_language.yml b/core/modules/language/migration_templates/default_language.yml index 7af3f9c..6d7604d 100644 --- a/core/modules/language/migration_templates/default_language.yml +++ b/core/modules/language/migration_templates/default_language.yml @@ -14,7 +14,8 @@ process: source: language_default default_value: 'language': 'en' - # Let's encode and decode to get rid of the default language stdClass. + # Encode and decode to turn the default_language variable, which is + # an stdClass, into an array so it can be passed to extract. - plugin: callback callable: diff --git a/core/modules/language/tests/src/Kernel/Migrate/MigrateDefaultLanguageTrait.php b/core/modules/language/tests/src/Kernel/Migrate/MigrateDefaultLanguageTrait.php index 14c2a7c..94bb02d 100644 --- a/core/modules/language/tests/src/Kernel/Migrate/MigrateDefaultLanguageTrait.php +++ b/core/modules/language/tests/src/Kernel/Migrate/MigrateDefaultLanguageTrait.php @@ -54,7 +54,7 @@ protected function doTestMigration($langcode, $existing = TRUE) { } /** - * Helper method to test the migration with unset variable. + * Helper method to test migrating the default language when no default language is set. */ protected function doTestMigrationWithUnsetVariable() { // Delete the language_default variable.