summaryrefslogtreecommitdiffstats
path: root/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
diff options
context:
space:
mode:
authorAlex Pott2015-08-22 17:33:23 +0100
committerAlex Pott2015-08-22 17:33:23 +0100
commit236206a769ff78e7f898136917685a49d97f411a (patch)
treeed9fa2d30ceb3ca6547b1c0387fcfa0c583f844c /core/modules/rest/src/Plugin/rest/resource/EntityResource.php
parentb077607f9193af27791709e96245abceafc385eb (diff)
Issue #2554873 by samuel.mortenson: Log message in Drupal\rest\Plugin\rest\resource\EntityResource::patch() missing Entity ID
Diffstat (limited to 'core/modules/rest/src/Plugin/rest/resource/EntityResource.php')
-rw-r--r--core/modules/rest/src/Plugin/rest/resource/EntityResource.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
index 464fe08..4b4d027 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 @@ class EntityResource extends ResourceBase {
$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);