Have two fields called field_a and field_b which inside the field collection field_available_water_s. I want to add two fields and store them inside the computed field called field_c which also inside the field_collection.
I tried using this way but it is not working
$entity_field[0][‘value’] = $entity->field_a[LANGUAGE_NONE][0] [‘value’]+$entity->field_b[LANGUAGE_NONE][0][‘value’];
Does anyone help me to figure out this issue?