How do I find out the machine name of a view in hook_preprocess_views_view_field?
The view itself is in the $variables array for all of the views hooks.

/** @var \Drupal\views\ViewExecutable $view */
$view = $variables['view'];
$view-&gt;id();


should give you what you are looking for.