as $key) { $request->query->
remove($key);
$request->request->
remove($key);
} // Load the view.
if (!
$entity =
$this->storage->
load($name)) { throw new NotFoundHttpException();
} $view =
$this->executableFactory->
get($entity);
if ($view &&
$view->
access($display_id) &&
$view->
setDisplay($display_id) &&
$view->display_handler->
ajaxEnabled()) { $response->
setView($view);
// Fix the current path for paging.
if (!
empty($path)) { $this->currentPath->
setPath('/' .
ltrim($path, '/'
),
$request);
} // Create a clone of the request object to avoid mutating the request
// object stored in the request stack.
$request_clone =
clone $request;
// Add all POST data, because AJAX is sometimes a POST and many things,
// such as tablesorts, exposed filters and paging assume GET.