diff --git a/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php b/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php index a09911c..110378f 100644 --- a/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php +++ b/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php @@ -171,11 +171,8 @@ public function denormalize($data, $class, $format = NULL, array $context = arra } } - // Special handling for PATCH: pass the names of the fields whose values - // should be merged. - if (isset($context['request_method']) && $context['request_method'] == 'patch') { - $entity->_restSubmittedFields = array_keys($data); - } + // Pass the names of the fields whose values can be merged. + $entity->_restSubmittedFields = array_keys($data); // Iterate through remaining items in data array. These should all // correspond to fields.