diff --git a/core/modules/file/lib/Drupal/file/Plugin/field/field_type/FileField.php b/core/modules/file/lib/Drupal/file/Plugin/field/field_type/FileField.php index 56b95df..65bc2b5 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/field/field_type/FileField.php +++ b/core/modules/file/lib/Drupal/file/Plugin/field/field_type/FileField.php @@ -51,7 +51,7 @@ protected function updateFileUsage() { // Compare the original field values with the ones that are being saved. $field_name = $this->getFieldDefinition()->getFieldName(); $original_fids = array(); - $original_items = $entity->original->getTranstaltion($this->getLangcode())->$field_name: + $original_items = $entity->original->getTranstaltion($this->getLangcode())->$field_name; foreach ($original_items as $item) { $original_fids[] = $item->target_id; if (isset($item->target_id) && !in_array($item->target_id, $fids)) {