You are here

public function FieldCollectionItemEntity::path in Field collection 7

Returns the path used to view the entity.

1 call to FieldCollectionItemEntity::path()
FieldCollectionItemEntity::defaultUri in ./field_collection.entity.inc
Returns the URI as returned by entity_uri().

File

./field_collection.entity.inc, line 165

Class

FieldCollectionItemEntity
Class for field_collection_item entities.

Code

public function path() {
  if ($this->item_id) {
    return field_collection_field_get_path($this
      ->fieldInfo()) . '/' . $this->item_id;
  }
}