You are here

public function Date::getDateFormat in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateFormat()
  2. 8 core/modules/datetime/src/Plugin/views/argument/Date.php \Drupal\datetime\Plugin\views\Argument\Date::getDateFormat()
Same name and namespace in other branches
  1. 8.0 core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateFormat()

Overridden in order to pass in the string date flag.

Overrides HandlerBase::getDateFormat

1 call to Date::getDateFormat()
Date::query in core/modules/datetime/src/Plugin/views/sort/Date.php
Override query to provide 'second' granularity.

File

core/modules/datetime/src/Plugin/views/sort/Date.php, line 51
Contains \Drupal\datetime\Plugin\views\sort\Date.

Class

Date
Basic sort handler for datetime fields.

Namespace

Drupal\datetime\Plugin\views\sort

Code

public function getDateFormat($format) {
  return $this->query
    ->getDateFormat($this
    ->getDateField(), $format, TRUE);
}