You are here

public function FieldCollectionItemEntity::hostEntityBundle in Field collection 7

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

1 call to FieldCollectionItemEntity::hostEntityBundle()
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 304

Class

FieldCollectionItemEntity
Class for field_collection_item entities.

Code

public function hostEntityBundle() {
  if ($entity = $this
    ->hostEntity()) {
    list($id, $rev_id, $bundle) = entity_extract_ids($this->hostEntityType, $entity);
    return $bundle;
  }
}