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.
I'm not 100% sure if this is actually needed, but it rounds out the API nicely.
Usage of entity_load_multiple_by_name()
borrowed from search_api.
Comment | File | Size | Author |
---|---|---|---|
#5 | field_collection-1239416-5.patch | 1.43 KB | tim.plunkett |
#3 | field_collection-1239416-3.patch | 1.4 KB | tim.plunkett |
#1 | field_collection-1239416-1.patch | 882 bytes | tim.plunkett |
Comments
Comment #1
tim.plunkettComment #2
fago+1 for adding such a helper, field-collection items are not identified by name though. Thus we should use entity_load().
Comment #3
tim.plunkettNow with basic doxygen.
Comment #4
fagoTypo in array. Also let's specify the return type in case of the single load so IDEs can pick that up. Then, I'd not call them field_collection_item objects, but "field-collections items" or "field-collection item entities".
Comment #5
tim.plunkettSounds good.
Comment #6
fagothanks, committed.
Comment #8
jmuzz CreditAttribution: jmuzz commentedI don't understand, the last few posts point to this being fixed, but somehow the issue is "Needs Work."
I'm setting it to fixed.