Commit b3a9492a authored by catch's avatar catch
Browse files

Issue #3458431 by scott_euser, quietone: Improve developer experience for...

Issue #3458431 by scott_euser, quietone: Improve developer experience for 10.3.x upgrade by informing where typed config fails

(cherry picked from commit 5a9d7e10)
parent 61cc0660
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -261,7 +261,7 @@ function system_post_update_add_langcode_to_all_translatable_config(&$sandbox =
    $config = \Drupal::configFactory()->getEditable($name);
    $typed_config = $typed_config_manager->createFromNameAndData($name, $config->getRawData());
    // Simple config is always a mapping.
    assert($typed_config instanceof Mapping);
    assert($typed_config instanceof Mapping, "Failed on config name '$name'");

    // If this config contains any elements (at any level of nesting) which
    // are translatable, but the config hasn't got a langcode, assign one. But