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.
Without "property_type" attributes, entity_metadata_wrapper and reflection on this field can be broken.
Attached patch in comment.
Comment | File | Size | Author |
---|---|---|---|
#1 | languagefield-property_type.patch | 380 bytes | paolomainardi |
Comments
Comment #1
paolomainardi CreditAttribution: paolomainardi commentedComment #2
Sutharsan CreditAttribution: Sutharsan commentedCode style Ok; Works as advertised.
Without this patch Language field module does not play with Entity module. Language fields can not be added using Entity module. Change priority to 'Major'.
To test this patch, create a content type 'with_language', and a language field and run the following code:
With the patch, the language field will be listed, without the patch not.
Comment #3
paolomainardi CreditAttribution: paolomainardi commentedThanks @Sutharsan.
Comment #4
johnvThanks.
It is committed here.
Comment #5
johnvBut check out #1363522: Add Entity Property Info 'languagefield' for a.o. Search API integration , which adds a 'languagefield' property instead of just a 'text' property.
Comment #6
johnvComment #7
paolomainardi CreditAttribution: paolomainardi commentedDear @johnv can you attribute the authorship of this commit to my drupal account ?
Thanks a lot!