Sets the executed view of this response.
Parameters
\Drupal\views\ViewExecutable $view:
The View executed on this ajax request.
File
- drupal/core/modules/views/lib/Drupal/views/Ajax/ViewAjaxResponse.php, line 33
- Contains \Drupal\views\Ajax\ViewAjaxResponse.
Class
- ViewAjaxResponse
- Custom JSON response object for an ajax view response.
Namespace
Drupal\views\Ajax
Code
public function setView(ViewExecutable $view) {
$this->view = $view;
}