You are here

public function SearchApiElasticsearchViewsHandlerFieldDate::get_value in Search API Elasticsearch 7.2

@inheritdoc

Overrides entity_views_handler_field_date::get_value

File

includes/views/SearchApiElasticsearchViewsHandlerFieldDate.inc, line 13
Contains SearchApiElasticsearchViewsHandlerFieldDate

Class

SearchApiElasticsearchViewsHandlerFieldDate
@file Contains SearchApiElasticsearchViewsHandlerFieldDate

Code

public function get_value($values, $field = NULL) {
  foreach ($values->_entity_properties[$this->real_field] as &$value) {
    $value = strtotime($value);
  }
  return EntityFieldHandlerHelper::get_value($this, $values, $field);
}