Check the current page is a view Is there a way to determine if you are on a view page, similar to   \Drupal::request()-&gt;get('node') used to check if the current page is a node page?

I need to adjust breadcrumbs for view generated pages with hook_system_breadcrumb_alter().
You could use the name of the current route:

$current_route_name = \Drupal::service('current_route_match')-&gt;getRouteName();


The route names from views are built like this view.[view_name].[display_id].

You can list the existing routes with Drupal Console:

drupal router:debug