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.
Needed by Commerce.
On the Commerce side every entity that has a getData and setData now also has an unsetData, that allows removing a flag, for example. No reason not to add it here as well.
The other method, populateFromProfile() would reduce boilerplate when setting profile fields based on another profile, which is common when implementing addressbooks and various kinds of profile reuse.
Comments
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedDone.