views information in exposed form hook
The view and display of an exposed form are stored in $form_state.

function mymodule_form_views_exposed_form_alter(&amp;$form, \Drupal\Core\Form\FormStateInterface $form_state) {
  $view = $form_state-&gt;get('view');
  $display = $form_state-&gt;get('display');
}