how can I access the value of another field inside the preprocess_views_view_field. This is an example:
function THEMENAME_preprocess_views_view_field(&$variables) { $view = $variables['view']; $field = $variables['field']; if ($view->id() == 'VIEW_NAME' && $view->current_display == 'DISPLAY_NAME') { if ($field->field == 'FIELD_NAME') { $my_output = manipulation(ANOTHER_FIELD_NAME_IN_VIEW); $variables['output'] = $my_output; } } }
It's possible or should i use it _preprocess_views_view?
$variables['row']
that should contain all the fields in your view