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.
Currently the entity object has already been modified heavily (timestamps stripped, entity id and revision id removed) once it gets passed to hook_uuid_entities_features_export_entity_alter().
This makes it either impossible or at least difficult to retrieve these original properties.
The appended patch passes a new, third $context argument that contains a shallow clone of the entity object. I've also added entity_info for convenience.
Note: Another approach that would be less versatile but also more light-weight would include adding only the removed properties to the $context array.
Comment | File | Size | Author |
---|---|---|---|
uuid-export-pass-original-entity.patch | 1.21 KB | ciss | |
Comments
Comment #1
ciss CreditAttribution: ciss commentedComment #2
ciss CreditAttribution: ciss commentedSince I'm guessing that this will never happen I am closing the issue and describing our workaround instead:
We had two use cases: