 core/lib/Drupal/Core/Entity/ContentEntityBase.php  | 32 +++++++++++++
 .../Core/Entity/FieldableEntityInterface.php       | 15 ++++++
 .../hal/src/Normalizer/ContentEntityNormalizer.php |  7 +--
 .../src/Plugin/rest/resource/EntityResource.php    | 56 +++++++++++-----------
 .../rest/resource/EntityResourceAccessTrait.php    | 15 +++---
 5 files changed, 87 insertions(+), 38 deletions(-)

diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php
index 971e551..d51b5a7 100644
--- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php
+++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php
@@ -7,6 +7,7 @@
 use Drupal\Core\Field\BaseFieldDefinition;
 use Drupal\Core\Language\Language;
 use Drupal\Core\Language\LanguageInterface;
+use Drupal\Core\Field\FieldItemListInterface;
 use Drupal\Core\Session\AccountInterface;
 use Drupal\Core\StringTranslation\TranslatableMarkup;
 use Drupal\Core\TypedData\TranslationStatusInterface;
@@ -156,6 +157,13 @@
   protected $loadedRevisionId;
 
   /**
+   * The list of field names of any fields that have changed.
+   *
+   * @var string[]
+   */
+  protected $changedFields = [];
+
+  /**
    * {@inheritdoc}
    */
   public function __construct(array $values, $entity_type, $bundle = FALSE, $translations = []) {
@@ -389,6 +397,8 @@ public function preSaveRevision(EntityStorageInterface $storage, \stdClass $reco
   public function postSave(EntityStorageInterface $storage, $update = TRUE) {
     parent::postSave($storage, $update);
 
+    $this->resetChangedFieldList();
+
     // Update the status of all saved translations.
     $removed = [];
     foreach ($this->translations as $langcode => &$data) {
@@ -566,6 +576,25 @@ public function getFields($include_computed = TRUE) {
   /**
    * {@inheritdoc}
    */
+  public function getChangedFields() {
+    // Filter the all fields to only fields that have changed.
+    return array_filter($this->getFields(), function ($field) {
+      /** @var FieldItemListInterface $field */
+      return isset($this->changedFields[$field->getName()]);
+    });
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function resetChangedFieldList() {
+    $this->changedFields = [];
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
   public function getTranslatableFields($include_computed = TRUE) {
     $fields = [];
     foreach ($this->getFieldDefinitions() as $name => $definition) {
@@ -700,6 +729,9 @@ protected function updateFieldLangcodes($langcode) {
    * {@inheritdoc}
    */
   public function onChange($name) {
+    // Add the field to the changed fields list.
+    $this->changedFields[$name] = TRUE;
+
     // Check if the changed name is the value of an entity key and if the value
     // of that is currently cached, if so, reset it. Exclude the bundle from
     // that check, as it ready only and must not change, unsetting it could
diff --git a/core/lib/Drupal/Core/Entity/FieldableEntityInterface.php b/core/lib/Drupal/Core/Entity/FieldableEntityInterface.php
index d21a2a8..90f7cff 100644
--- a/core/lib/Drupal/Core/Entity/FieldableEntityInterface.php
+++ b/core/lib/Drupal/Core/Entity/FieldableEntityInterface.php
@@ -236,4 +236,19 @@ public function isValidationRequired();
    */
   public function setValidationRequired($required);
 
+  /**
+   * Gets an array of changed field item lists.
+   *
+   * @return \Drupal\Core\Field\FieldItemListInterface[]
+   *   An array of field item lists implementing, keyed by field name.
+   */
+  public function getChangedFields();
+
+  /**
+   * Resets the list an array of changed field names.
+   *
+   * @return $this
+   */
+  public function resetChangedFieldList();
+
 }
diff --git a/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php b/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php
index 1fc118d..63d0275 100644
--- a/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php
+++ b/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php
@@ -8,6 +8,7 @@
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\hal\LinkManager\LinkManagerInterface;
 use Drupal\serialization\Normalizer\FieldableEntityNormalizerTrait;
+use Drupal\Core\Entity\FieldableEntityInterface;
 use Symfony\Component\Serializer\Exception\UnexpectedValueException;
 
 /**
@@ -149,6 +150,7 @@ public function denormalize($data, $class, $format = NULL, array $context = [])
       unset($data[$bundle_key]);
     }
 
+    /** @var FieldableEntityInterface $entity */
     $entity = $this->entityManager->getStorage($typed_data_ids['entity_type'])->create($values);
 
     // Remove links from data array.
@@ -171,9 +173,8 @@ public function denormalize($data, $class, $format = NULL, array $context = [])
 
     $this->denormalizeFieldData($data, $entity, $format, $context);
 
-    // Pass the names of the fields whose values can be merged.
-    // @todo https://www.drupal.org/node/2456257 remove this.
-    $entity->_restSubmittedFields = array_keys($data);
+    // Reset the list of changed fields.
+    $entity->resetChangedFieldList();
 
     return $entity;
   }
diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
index a4162b5..11791ba 100644
--- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
+++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
@@ -259,37 +259,35 @@ public function patch(EntityInterface $original_entity, EntityInterface $entity
     }
 
     // Overwrite the received properties.
-    $entity_keys = $entity->getEntityType()->getKeys();
-    foreach ($entity->_restSubmittedFields as $field_name) {
-      $field = $entity->get($field_name);
-
-      // 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.
-      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.
-        // This will be fixed in https://www.drupal.org/node/2824851.
-        if ($entity->getEntityTypeId() == 'comment' && $field_name == 'status' && !$original_entity->get($field_name)->access('edit')) {
-          throw new AccessDeniedHttpException("Access denied on updating field '$field_name'.");
-        }
-
-        // Unchanged values for entity keys don't need access checking.
-        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.
-        elseif (isset($entity_keys['langcode']) && $field_name === $entity_keys['langcode'] && $field->isEmpty()) {
-          continue;
+    if ($entity instanceof FieldableEntityInterface) {
+      $entity_keys = $entity->getEntityType()->getKeys();
+      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.
+        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.
+          // This will be fixed in https://www.drupal.org/node/2824851.
+          if ($entity->getEntityTypeId() == 'comment' && $field_name == 'status' && !$original_entity->get($field_name)
+              ->access('edit')
+          ) {
+            throw new AccessDeniedHttpException("Access denied on updating field '$field_name'.");
+          }
+
+          // Unchanged values for entity keys don't need access checking.
+          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.
+          elseif (isset($entity_keys['langcode']) && $field_name === $entity_keys['langcode'] && $field->isEmpty()) {
+            continue;
+          }
         }
       }
-
-      if (!$original_entity->get($field_name)->access('edit')) {
-        throw new AccessDeniedHttpException("Access denied on updating field '$field_name'.");
-      }
-      $original_entity->set($field_name, $field->getValue());
     }
 
     // Validate the received data before saving.
diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResourceAccessTrait.php b/core/modules/rest/src/Plugin/rest/resource/EntityResourceAccessTrait.php
index 7bf8e82..ebea0e9 100644
--- a/core/modules/rest/src/Plugin/rest/resource/EntityResourceAccessTrait.php
+++ b/core/modules/rest/src/Plugin/rest/resource/EntityResourceAccessTrait.php
@@ -3,6 +3,7 @@
 namespace Drupal\rest\Plugin\rest\resource;
 
 use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Entity\FieldableEntityInterface;
 use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
 
 /**
@@ -22,12 +23,14 @@
    *   field.
    */
   protected function checkEditFieldAccess(EntityInterface $entity) {
-    // Only check 'edit' permissions for fields that were actually submitted by
-    // the user. Field access makes no difference between 'create' and 'update',
-    // so the 'edit' operation is used here.
-    foreach ($entity->_restSubmittedFields as $key => $field_name) {
-      if (!$entity->get($field_name)->access('edit')) {
-        throw new AccessDeniedHttpException("Access denied on creating field '$field_name'.");
+    // Only check 'edit' permissions for fields that were actually
+    // submitted by the user. Field access makes no difference between 'create'
+    // and 'update', so the 'edit' operation is used here.
+    if ($entity instanceof FieldableEntityInterface) {
+      foreach (array_keys($entity->getChangedFields()) as $field_name) {
+        if (!$entity->get($field_name)->access('edit')) {
+          throw new AccessDeniedHttpException("Access denied on creating field '$field_name'.");
+        }
       }
     }
   }
