public function FieldCollectionItemEntity::view in Field collection 7
Generate an array for rendering the field collection item.
Overrides Entity::view
File
- ./
field_collection.entity.inc, line 646
Class
- FieldCollectionItemEntity
- Class for field_collection_item entities.
Code
public function view($view_mode = 'full', $langcode = NULL, $page = NULL) {
// Allow modules to change the view mode.
$view_mode = key(entity_view_mode_prepare($this->entityType, array(
$this->item_id => $this,
), $view_mode, $langcode));
return parent::view($view_mode, $langcode, $page);
}