3 namespace Drupal\views\Ajax;
5 use Drupal\Core\Ajax\AjaxResponse;
6 use Drupal\views\ViewExecutable;
9 * Custom JSON response object for an ajax view response.
11 * We use a special response object to be able to fire a proper alter hook.
13 class ViewAjaxResponse extends AjaxResponse {
16 * The view executed on this ajax request.
18 * @var \Drupal\views\ViewExecutable
23 * Sets the executed view of this response.
25 * @param \Drupal\views\ViewExecutable $view
26 * The View executed on this ajax request.
28 public function setView(ViewExecutable $view) {
33 * Gets the executed view of this response.
35 * @return \Drupal\views\ViewExecutable
36 * The View executed on this ajax request.
38 public function getView() {