I have a view grid that has custom actions to perform based on selected grid row. To read the view fields from the grid dpm-ed the below command:
dpm($this->view->result);
The above command returns:
I am trying to specifically read the "field_comment_id_comment_field_data_nid" and I get null every time:
dpm($this->view->result[0]->field_comment_id_comment_field_data_nid);
Update: I modified the dpm and I see the value correctly. Unsure of how to loop through the result array. still trying.
ResultRow
doesn’t have aget
method. The output saysfield_comment_id_comment_field_data_nid
is a public property of the object so you can access it directly$this->view->result
is an array