diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php index 464fe08c0f434f66c5632bc7c121499562384583..4b4d0278a91cd2b5fd1f1bd077cabb654cfcfcc9 100644 --- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php +++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php @@ -163,7 +163,7 @@ public function patch(EntityInterface $original_entity, EntityInterface $entity $this->validate($original_entity); try { $original_entity->save(); - $this->logger->notice('Updated entity %type with ID %id.', array('%type' => $entity->getEntityTypeId(), '%id' => $entity->id())); + $this->logger->notice('Updated entity %type with ID %id.', array('%type' => $original_entity->getEntityTypeId(), '%id' => $original_entity->id())); // Update responses have an empty body. return new ResourceResponse(NULL, 204);