diff --git a/core/modules/field_ui/src/Form/FieldStorageAddForm.php b/core/modules/field_ui/src/Form/FieldStorageAddForm.php index cc0bb0c465..d49ac64304 100644 --- a/core/modules/field_ui/src/Form/FieldStorageAddForm.php +++ b/core/modules/field_ui/src/Form/FieldStorageAddForm.php @@ -357,7 +357,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { 'label' => $values['label'], // Field translatability should be explicitly enabled by the users. 'translatable' => FALSE, - ...$default_options['field_config'], + ...$default_options['field_config'] ?? [], ]; $field_storage_values = [ @@ -365,7 +365,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { 'type' => $field_type, 'entity_type' => $this->entityTypeId, 'translatable' => $values['translatable'], - ...$default_options['field_storage_config'], + ...$default_options['field_storage_config'] ?? [], ]; }