public function FieldCollectionItemEntity::langcode in Field collection 7
Determines the language code under which the item is stored.
1 call to FieldCollectionItemEntity::langcode()
- FieldCollectionItemEntity::save in ./
field_collection.entity.inc - Save the field collection item.
File
- ./
field_collection.entity.inc, line 419
Class
- FieldCollectionItemEntity
- Class for field_collection_item entities.
Code
public function langcode() {
if (empty($this->langcode) || $this
->delta() === NULL) {
$this->langcode = field_collection_entity_language('field_collection_item', $this);
}
if (empty($this->langcode) || $this->langcode != LANGUAGE_NONE && (!module_exists('entity_translation') || !entity_translation_enabled('field_collection_item'))) {
$this->langcode = LANGUAGE_NONE;
}
return $this->langcode;
}