protected function ViewsBulkOperationsBulkForm::getExposedInput in Views Bulk Operations (VBO) 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/views/field/ViewsBulkOperationsBulkForm.php \Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm::getExposedInput()
Gets exposed input values from the view.
Parameters
array $exposed_input: Current values of exposed input.
Return value
array Exposed input sorted by filter names.
1 call to ViewsBulkOperationsBulkForm::getExposedInput()
- ViewsBulkOperationsBulkForm::updateTempstoreData in src/
Plugin/ views/ field/ ViewsBulkOperationsBulkForm.php - Update tempstore data.
File
- src/
Plugin/ views/ field/ ViewsBulkOperationsBulkForm.php, line 314
Class
- ViewsBulkOperationsBulkForm
- Defines the Views Bulk Operations field plugin.
Namespace
Drupal\views_bulk_operations\Plugin\views\fieldCode
protected function getExposedInput(array $exposed_input = []) {
if (empty($exposed_input)) {
// To avoid unnecessary reset of selection, we apply default values. We do
// that, because default values can be provided or not in the request, and
// it doesn't change results.
$exposed_input = array_merge($this->view
->getExposedInput(), $this->view->exposed_raw_input);
}
// Sort values to avoid problems when comparing old and current exposed
// input.
ksort($exposed_input);
foreach ($exposed_input as $name => $value) {
if (is_array($value) && !empty($value)) {
$exposed_input[$name] = $this
->getExposedInput($value);
}
}
return $exposed_input;
}