Commit 8423a2dc authored by florenttorregrosa's avatar florenttorregrosa Committed by Neslee
Browse files

Issue #3181042 by Grimreaper: getExposedFilterWidgetType method is not working properly

parent 6b9c4672
......@@ -325,6 +325,7 @@ abstract class FilterWidgetBase extends BetterExposedFiltersWidgetBase implement
$form_state->set('exposed', TRUE);
/** @var \Drupal\views\Plugin\views\filter\FilterPluginBase $filter */
$filter = $this->handler;
$filter->buildExposedForm($form, $form_state);
$filter_id = $filter->options['expose']['identifier'];
return $form[$filter_id]['#type'] ?? $form[$filter_id]['value']['#type'] ?? '';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment