public function Date::getDateField in Drupal 10
Same name in this branch
- 10 core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateField()
- 10 core/modules/datetime/src/Plugin/views/argument/Date.php \Drupal\datetime\Plugin\views\argument\Date::getDateField()
Same name and namespace in other branches
- 8 core/modules/datetime/src/Plugin/views/argument/Date.php \Drupal\datetime\Plugin\views\argument\Date::getDateField()
- 9 core/modules/datetime/src/Plugin/views/argument/Date.php \Drupal\datetime\Plugin\views\argument\Date::getDateField()
1 call to Date::getDateField()
- Date::getDateFormat in core/
modules/ datetime/ src/ Plugin/ views/ argument/ Date.php
File
- core/
modules/ datetime/ src/ Plugin/ views/ argument/ Date.php, line 55
Class
- Date
- Abstract argument handler for dates.
Namespace
Drupal\datetime\Plugin\views\argumentCode
public function getDateField() {
// Use string date storage/formatting since datetime fields are stored as
// strings rather than UNIX timestamps.
return $this->query
->getDateField("{$this->tableAlias}.{$this->realField}", TRUE, $this->calculateOffset);
}