You are here

public function FieldCollectionItemEntity::hostEntityType in Field collection 7

Returns the entity type of the host entity, which embeds this field collection item.

3 calls to FieldCollectionItemEntity::hostEntityType()
FieldCollectionItemEntity::copyTranslations in ./field_collection.entity.inc
Copies text to all languages the collection item has a translation for.
FieldCollectionItemEntity::deleteHostEntityReference in ./field_collection.entity.inc
Deletes the host entity's reference of the field collection item.
FieldCollectionItemEntity::instanceInfo in ./field_collection.entity.inc
Provides info of the field instance containing the reference to this field collection item.

File

./field_collection.entity.inc, line 282

Class

FieldCollectionItemEntity
Class for field_collection_item entities.

Code

public function hostEntityType() {
  if ($this
    ->fetchHostDetails()) {
    return $this->hostEntityType;
  }
}