diff --git a/core/modules/views/src/ViewExecutableFactory.php b/core/modules/views/src/ViewExecutableFactory.php index 52e527c..8f9a479 100644 --- a/core/modules/views/src/ViewExecutableFactory.php +++ b/core/modules/views/src/ViewExecutableFactory.php @@ -40,6 +40,13 @@ class ViewExecutableFactory { protected $viewsData; /** + * The route provider. + * + * @var \Drupal\Core\Routing\RouteProviderInterface + */ + protected $routeProvider; + + /** * The global token utility. * * @var \Drupal\Core\Utility\Token @@ -78,7 +85,7 @@ public function __construct(AccountInterface $user, RequestStack $request_stack, * A ViewExecutable instance. */ public function get(ViewEntityInterface $view) { - $view = new ViewExecutable($view, $this->user, $this->viewsData, $this->tokenUtility); + $view = new ViewExecutable($view, $this->user, $this->viewsData, $this->routeProvider, $this->tokenUtility); $view->setRequest($this->requestStack->getCurrentRequest()); return $view; }