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.
Here is a quick patch to handle geocoding from entity-properties. I removed also some remaining white spaces.
Comment | File | Size | Author |
---|---|---|---|
#1 | entity_property.patch | 4.83 KB | Pierco |
entity_property.patch | 5.2 KB | Pierco | |
Comments
Comment #1
Pierco CreditAttribution: Pierco commentedoops, sorry patch was wrong.
Comment #2
Simon Georges CreditAttribution: Simon Georges commentedPatch applies cleanly on current -dev, could somebody test the functionality?
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedi am not sure what the patch does. can you elaborate?
Comment #4
rudiedirkx CreditAttribution: rudiedirkx commentedOoh, this method uses existing object properties, not really using entity properties:
It won't work with multiple values.
I don't think this is a good method. It should use entity meta data wrappers, so the value is only created when it's necessary AND supports multiple values.
Like #2159925: Geocode from virtual fields/entity property instead of just real fields.
Comment #5
rudiedirkx CreditAttribution: rudiedirkx commentedComment #6
rudiedirkx CreditAttribution: rudiedirkx commentedFixed by #2159925: Geocode from virtual fields/entity property instead of just real fields