You are here

public function FieldCollectionItemEntity::instanceInfo in Field collection 7

Provides info of the field instance containing the reference to this field collection item.

1 call to FieldCollectionItemEntity::instanceInfo()
FieldCollectionItemEntity::translatedInstanceLabel in ./field_collection.entity.inc
Returns the field instance label translated to interface language.

File

./field_collection.entity.inc, line 118

Class

FieldCollectionItemEntity
Class for field_collection_item entities.

Code

public function instanceInfo() {
  if ($this
    ->fetchHostDetails()) {
    return field_info_instance($this
      ->hostEntityType(), $this->field_name, $this
      ->hostEntityBundle());
  }
}