In your ./themes/YOURTHEME/YOURTHEME.theme
file, add the following:
/** * Replace YOURTHEME with the actual name of your theme and * field_NAME_OF_YOUR_FIELD with the actual machine name of your field. */ function YOURTHEME_preprocess_views_view_field(&$variables) { if (($node = \Drupal::routeMatch()->getParameter('node')) && $node instanceof \Drupal\node\NodeInterface) { print_r($node->field_NAME_OF_YOUR_FIELD->value); } }