protected function Date::valueForm in EntityFieldQuery Views Backend 8
Add a type selector to the value form
Overrides Date::valueForm
File
- src/
Plugin/ views/ filter/ Date.php, line 25 - Contains \Drupal\efq_views\Plugin\views\filter\Date.
Class
- Date
- Filter handler for date properties.
Namespace
Drupal\efq_views\Plugin\views\filterCode
protected function valueForm(&$form, FormStateInterface $form_state) {
parent::valueForm($form, $form_state);
unset($form['value']['type']);
$form['value']['value']['#description'] = t('A date in any machine readable format. CCYY-MM-DD HH:MM:SS is preferred.');
}