Closed (fixed)
Project:
Field collection
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 May 2013 at 14:31 UTC
Updated:
24 May 2013 at 09:10 UTC
How to get the entity id of a field collection that is displayed with a formatter on a node. Normally i would use entity api like this:
$entity_id = entity_id($entity_type, $build['#' . $entity_type]);
Comments
Comment #1
Caseledde commentedFor field_collections the array key is '#entity'.
$entity_id = entity_id($entity_type, $build['#$entity']);