protected function ViewsBulkOperationsActionProcessor::setView in Views Bulk Operations (VBO) 4.0.x
Same name and namespace in other branches
- 8.3 src/Service/ViewsBulkOperationsActionProcessor.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionProcessor::setView()
- 8 src/Service/ViewsBulkOperationsActionProcessor.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionProcessor::setView()
- 8.2 src/Service/ViewsBulkOperationsActionProcessor.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionProcessor::setView()
Set the current view object.
Parameters
mixed $view: The current view object or NULL.
1 call to ViewsBulkOperationsActionProcessor::setView()
- ViewsBulkOperationsActionProcessor::initialize in src/
Service/ ViewsBulkOperationsActionProcessor.php - Set values.
File
- src/
Service/ ViewsBulkOperationsActionProcessor.php, line 163
Class
- ViewsBulkOperationsActionProcessor
- Defines VBO action processor.
Namespace
Drupal\views_bulk_operations\ServiceCode
protected function setView($view = NULL) : void {
if (!is_null($view)) {
$this->view = $view;
}
else {
$this->view = Views::getView($this->bulkFormData['view_id']);
$this->view
->setDisplay($this->bulkFormData['display_id']);
}
$this->view->get_total_rows = TRUE;
$this->view->views_bulk_operations_processor_built = TRUE;
if (!empty($this->bulkFormData['arguments'])) {
$this->view
->setArguments($this->bulkFormData['arguments']);
}
}