I want to get (and to set after) the value of a field collection in a field collection (multidimensional field content).
This is my code :
// The node is a custom content.
// I get the list of first collections fields.
$temp = field_collection_get($node,'field_top');
// Shows the structure you can see below in the screenshot.
dpm($temp->value()[0]);
// Now, I want to get the value of field_website_informations.
// I've tried several ways but I couldn't find the right way.
// The following line returns an error.
$testage = entity_metadata_wrapper($temp->value()[0], 'field_website_informations');
Is it possible to do with the Entity API?
The screenshot :
dpm()
ever again, particularly in Drupal with its heavy reliance on multi-dimensional arrays to pass around data.