Can't get id/name of view in hook_preprocess_views_view_unformatted
This is the only way I could get view id (not sure why)

function THEMENAME_preprocess_views_view_unformatted($vars){
  $view = $vars["view"];
  //works
  $id = $view-&gt;id();
}