public function WebformSubmissionDateFilter::opSimple in Webform Views Integration 8.5
Overrides Date::opSimple
File
- src/
Plugin/ views/ filter/ WebformSubmissionDateFilter.php, line 53
Class
- WebformSubmissionDateFilter
- Filter for date values of a webform submission.
Namespace
Drupal\webform_views\Plugin\views\filterCode
public function opSimple($field) {
$value = intval(strtotime($this->value['value'], $this->time
->getRequestTime()));
$value = $this->dateFormatter
->format($value, 'custom', 'Y-m-d');
$this->query
->addWhere($this->options['group'], $field, $value, $this->operator);
}