Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When passing an entity to createIndividualDataFromEntity
the system crashes.
assert(Inspector::assertAllObjects($data, ResourceObject::class, EntityAccessDeniedHttpException::class))
That is because the code passes the first item in the array iterator, which is a resource object. ResourceObjectData assumes it'll receive an array of ResourceObjects.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3090606-2.patch | 664 bytes | mglaman |
Comments
Comment #2
mglamanThis fixes my tests for Cart API which is using the method.
Comment #4
mglamanFixed. There should probably be a test 😬 but this way it unblocks the Commerce Cart API.