Currently only node entity type is supported for row plugin, which means it is impossible to get full entities response for non-node entities.
By gathering the entity information it is possible to gather the needed ids, and then call entity_load() to load the results.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | support_any_entity_type-1994992.patch | 1.08 KB | shushu |
| #1 | support_any_entity_type-1994992.patch | 914 bytes | shushu |
Comments
Comment #1
shushu commentedAttached code to support this feature.
Hope it will be accepted as soon as possible.
Comments are welcome.
Comment #2
shushu commentedAnother version, since it seems taxonomy terms has a special case.
Comment #3
gigabates commentedIf anyone's still interested in this, the base table isn't necessarily the same as the entity type. Taxonomy terms are not the only exception as hook_entity_info() can specify anything as the base table. The correct way to identify the entity type from the base table would be something like this.