You are here

protected function Date::getFieldDateFormat in CiviCRM Entity 8.3

Get date field.

Parameters

string $field: The column field.

Return value

string Field formatted as date.

See also

\Drupal\views\Plugin\views\query::getDateFormat()

2 calls to Date::getFieldDateFormat()
Date::opBetween in src/Plugin/views/filter/Date.php
Filters by operator between.
Date::opSimple in src/Plugin/views/filter/Date.php

File

src/Plugin/views/filter/Date.php, line 108

Class

Date
An "In" handler to include CiviCRM API.

Namespace

Drupal\civicrm_entity\Plugin\views\filter

Code

protected function getFieldDateFormat($field) {
  return $this->query
    ->getDateFormat($this->query
    ->getDateField($field, TRUE, FALSE), $this->dateFormat);
}