According to this description of hook_preprocess_views_view_field()
, $variables
contains, among other things, $variables['field']
.
However, if I do print_r($variables['field'])
just to inspect the object it prints the entire object (to include my username and password!) and even causes the browser to crash.
I am trying to figure out how to check the field name but it is proving to be strangely non-straightforward.
How can I properly index $variables
?