public function Date::getDateFormat in Drupal 10
Same name in this branch
- 10 core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateFormat()
- 10 core/modules/datetime/src/Plugin/views/argument/Date.php \Drupal\datetime\Plugin\views\argument\Date::getDateFormat()
Same name and namespace in other branches
- 8 core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateFormat()
- 9 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.
File
- core/
modules/ datetime/ src/ Plugin/ views/ sort/ Date.php, line 58
Class
- Date
- Basic sort handler for datetime fields.
Namespace
Drupal\datetime\Plugin\views\sortCode
public function getDateFormat($format) {
return $this->query
->getDateFormat($this
->getDateField(), $format, TRUE);
}