function ViewsDependentFilter::filters_disable in Views Dependent Filters 8
Disable the filters we control.
1 call to ViewsDependentFilter::filters_disable()
- ViewsDependentFilter::acceptExposedInput in src/
Plugin/ views/ filter/ ViewsDependentFilter.php - Prevent the view from accepting input from ourselves and dependents.
File
- src/
Plugin/ views/ filter/ ViewsDependentFilter.php, line 33
Class
- ViewsDependentFilter
- Filters by given list of related content title options.
Namespace
Drupal\views_dependent_filter\Plugin\views\filterCode
function filters_disable() {
// This hacks subsequent handlers' options so they are no longer exposed.
// Incoming values from these on submit will be simply ignored.
foreach ($this->filters_kill as $filter_id) {
$this->view->display_handler
->getHandlers('filter')[$filter_id]->options['exposed'] = FALSE;
}
}