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.
Updated: Comment #N
Problem/Motivation
We can normalize/denormalize content entities, why not config entities too? They are a massive part of Drupal 8 architecture. It seems very reasonable people will want to serialize/unserialize this stuff with the serializer in web services. For such a small patch, it seems better to provide this in core, rather than have x contrib modules providing a similar thing all over the place.
Proposed resolution
Extend the EntityNormalizer class and override the normalize() method to call getExportProperties() - DONE.
Remaining tasks
Patch, review.
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff-2191903-4.txt | 1.38 KB | damiankloip |
#4 | 2191903-4.patch | 3.41 KB | damiankloip |
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedHmm, poor english there..
Comment #2
aspilicious CreditAttribution: aspilicious commentedI agree this should be part of core
Comment #3
dawehnersee the other issue ...
inheritdoc
assertsame => assertSame
Comment #4
damiankloip CreditAttribution: damiankloip commentedThanks for the review!
Comment #6
damiankloip CreditAttribution: damiankloip commented4: 2191903-4.patch queued for re-testing.
Comment #7
damiankloip CreditAttribution: damiankloip commentedComment #8
dawehnerThank you for fixing the points.
Comment #9
catchFancy.
Committed/pushed to 8.x, thanks!