public function FieldCollectionItemEntity::isInUse in Field collection 7
Determines whether this field collection item revision is in use.
Field Collection items may be contained in from non-default host entity revisions. If the field collection item does not appear in the default host entity revision, the item is actually not used by default and so marked as 'archived'. If the field collection item appears in the default revision of the host entity, the default revision of the field collection item is in use there and the collection is not marked as archived.
3 calls to FieldCollectionItemEntity::isInUse()
- FieldCollectionItemEntity::fetchHostDetails in ./
field_collection.entity.inc - Collects info about the field collection's host.
- FieldCollectionItemEntity::hostEntity in ./
field_collection.entity.inc - Returns the host entity, which embeds this field collection item.
- FieldCollectionItemEntity::updateHostEntity in ./
field_collection.entity.inc - Updates the wrapped host entity object.
File
- ./
field_collection.entity.inc, line 442
Class
- FieldCollectionItemEntity
- Class for field_collection_item entities.
Code
public function isInUse() {
return $this->default_revision && !$this->archived;
}