Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
index 050c7f5..15396fd 100644
--- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
+++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
@@ -11,9 +11,7 @@ use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityStorageException;
-use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException;
-use Drupal\Core\TypedData\PrimitiveInterface;
use Drupal\rest\Plugin\ResourceBase;
use Drupal\rest\ResourceResponse;
use Psr\Log\LoggerInterface;
Comments
Comment #2
wim leersComment #3
wim leersWim--
Comment #5
tstoecklerTook a sneek peak at the test results and they look good. Seems fair enough. Thanks!
Comment #6
wim leersThis blocks #2824851: EntityResource::patch() makes an incorrect assumption about entity keys, hence results in incorrect behavior, so tagging .
Comment #7
effulgentsia commented#3 looks good. I just want to see if we have any test coverage that prevents this version.
Comment #8
wim leersSuspicious effulgentsia, I like it :D
Comment #10
effulgentsia commentedGreat!
Comment #11
effulgentsia commentedRemoving credit from myself.
Comment #13
effulgentsia commentedPushed #3 to 8.5.x. Thanks!
Comment #14
wim leersThis wasn't in my patch but was committed:
That's ok, but led to some surprises when rerolling #2824851: EntityResource::patch() makes an incorrect assumption about entity keys, hence results in incorrect behavior. I thought PHPStorm or git was behaving erratically :)