Field Collection Host Entity
Categories
Component ID
2510552
Component name
Field Collection Host Entity
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
368
Component created
Component changed
Component body
About
This module provides the host entity for field collection items by adding every host entity as a computed property on field collection bundle level.
There is a patch that does the same. Until the problem is solved this sandbox fixes this problem.
https://www.drupal.org/node/2489142#comment-10049160
Use case
When indexing field collection items via Search API module, one might need the host entity. The current implementation of the "host_entity" does not provide the needed information, because field collections can be attached to any fieldable entity type. Therefor one can use the "host_entity{entity_type}" property to access the correct host entity and get get its fields into context.
