I defined a formatter for a field with hook_field_formatter_info()/view(). This field is a field collection and renders fine when I choose my custom formatter through the ui.
I can get my (already defined) field collection with:
$field_collection = entity_load('field_collection_item', array($field_nid))[$field_nid];
This returns a FieldCollectionItemEntity. (info) But how can I render this field colleciton programatically.
Does not seem to work and I don't see any methods to render this field collection through code even though the ui config has no problem rendering it as I've defined it.