diff --git a/core/modules/views/src/Plugin/views/display/Page.php b/core/modules/views/src/Plugin/views/display/Page.php index 193979e..8a2fd41 100644 --- a/core/modules/views/src/Plugin/views/display/Page.php +++ b/core/modules/views/src/Plugin/views/display/Page.php @@ -160,7 +160,7 @@ public static function buildBasicRenderable($view_id, $display_id, array $args = $build['#view_display_show_admin_links'] = $route->getOption('_view_display_show_admin_links'); } else { - throw new \BadFunctionCallException('Missing route parameters.'); + throw new \InvalidArgumentException('Missing route parameters.'); } return $build;