I have 2 exposed filters in my Drupal 8 view – both are select dropdowns. I want the value of the 2nd filter to change based on selection of first filter Here are the filters $filters = $view->display_handler->getOption('filters');
$filters['country']
and $filters['states']
.
Problem is that I always get an empty value when I try to access country filter in my views_pre_view hook.
dpm($filters['country']['value'])
always prints empty.
How do I solve this please?