function Date::getDateField
Creates cross-database SQL dates.
Return value
string An appropriate SQL string for the db type and field type.
Overrides HandlerBase::getDateField
1 call to Date::getDateField()
- Date::getDateFormat in core/
modules/ datetime/ src/ Plugin/ views/ argument/ Date.php - Creates cross-database SQL date formatting.
File
-
core/
modules/ datetime/ src/ Plugin/ views/ argument/ Date.php, line 69
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.