diff -u b/core/modules/layout_builder/layout_builder.post_update.php b/core/modules/layout_builder/layout_builder.post_update.php --- b/core/modules/layout_builder/layout_builder.post_update.php +++ b/core/modules/layout_builder/layout_builder.post_update.php @@ -52,7 +52,7 @@ // The field map can contain stale information. If the field does not // exist, ignore it. The field map will be rebuilt when the cache is // cleared at the end of the update process. - if (!$field_config = FieldConfig::loadByName($entity_type_id, $bundle, OverridesSectionStorage::FIELD_NAME)) { + if (!FieldConfig::loadByName($entity_type_id, $bundle, OverridesSectionStorage::FIELD_NAME)) { continue; } _layout_builder_add_translation_field($entity_type_id, $bundle); diff -u b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php --- b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php +++ b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php @@ -244,8 +244,7 @@ /** * Setup translated entity with layouts. */ - protected function setUpEntities() - { + protected function setUpEntities() { $this->drupalLogin($this->administrator); // @todo The Layout Builder UI relies on local tasks; fix in