public function FieldCollectionItemEntity::hostEntityId in Field collection 7
Returns the id of the host entity, which embeds this field collection item.
File
- ./
field_collection.entity.inc, line 291
Class
- FieldCollectionItemEntity
- Class for field_collection_item entities.
Code
public function hostEntityId() {
if ($this
->fetchHostDetails()) {
if (!$this->hostEntityId && $this->hostEntityRevisionId) {
$this->hostEntityId = entity_id($this->hostEntityType, $this
->hostEntity());
}
return $this->hostEntityId;
}
}