function ViewAjaxResponse::setView
Same name in other branches
- 8.9.x core/modules/views/src/Ajax/ViewAjaxResponse.php \Drupal\views\Ajax\ViewAjaxResponse::setView()
- 10 core/modules/views/src/Ajax/ViewAjaxResponse.php \Drupal\views\Ajax\ViewAjaxResponse::setView()
- 11.x core/modules/views/src/Ajax/ViewAjaxResponse.php \Drupal\views\Ajax\ViewAjaxResponse::setView()
Sets the executed view of this response.
Parameters
\Drupal\views\ViewExecutable $view: The View executed on this ajax request.
File
-
core/
modules/ views/ src/ Ajax/ ViewAjaxResponse.php, line 28
Class
- ViewAjaxResponse
- Custom JSON response object for an ajax view response.
Namespace
Drupal\views\AjaxCode
public function setView(ViewExecutable $view) {
$this->view = $view;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.