Commit 265a39bf authored by lamp5's avatar lamp5 Committed by Neslee Canil Pinto
Browse files

Issue #3196004 by lamp5: Allow date filter fields to use a hidden widget

parent 2666f31c
......@@ -37,4 +37,17 @@ class Hidden extends FilterWidgetBase {
}
}
/**
* {@inheritdoc}
*/
public static function isApplicable($filter = NULL, array $filter_options = []) {
$is_applicable = parent::isApplicable($filter, $filter_options);
if ((is_a($filter, 'Drupal\views\Plugin\views\filter\Date') || !empty($filter->date_handler)) && !$filter->isAGroup()) {
$is_applicable = TRUE;
}
return $is_applicable;
}
}
Markdown is supported
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