diff -u b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php --- b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php +++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php @@ -264,9 +264,9 @@ foreach ($entity->getChangedFields() as $field_name => $field) { // Entity key fields need special treatment: together they uniquely - // identify the entity. Therefore it does not make sense to modify any of - // them. However, rather than throwing an error, we just ignore them as - // long as their specified values match their current values. + // identify the entity. Therefore it does not make sense to modify any + // of them. However, rather than throwing an error, we just ignore them + // as long as their specified values match their current values. if (in_array($field_name, $entity_keys, TRUE)) { // @todo Work around the wrong assumption that entity keys need special // treatment, when only read-only fields need it. @@ -281,8 +281,9 @@ if ($this->getCastedValueFromFieldItemList($original_entity->get($field_name)) === $this->getCastedValueFromFieldItemList($entity->get($field_name))) { continue; } - // It is not possible to set the language to NULL as it is automatically - // re-initialized. As it must not be empty, skip it if it is. + // It is not possible to set the language to NULL as it is + // automatically re-initialized. As it must not be empty, + // skip it if it is. elseif (isset($entity_keys['langcode']) && $field_name === $entity_keys['langcode'] && $field->isEmpty()) { continue; }