function HandlerBase::getDateField
Same name in other branches
- 9 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::getDateField()
- 8.9.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::getDateField()
- 11.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::getDateField()
Creates cross-database SQL dates.
Return value
string An appropriate SQL string for the db type and field type.
1 call to HandlerBase::getDateField()
- HandlerBase::getDateFormat in core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php - Creates cross-database SQL date formatting.
2 methods override HandlerBase::getDateField()
- Date::getDateField in core/
modules/ datetime/ src/ Plugin/ views/ argument/ Date.php - Creates cross-database SQL dates.
- Date::getDateField in core/
modules/ datetime/ src/ Plugin/ views/ sort/ Date.php - Override to account for dates stored as strings.
File
-
core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php, line 730
Class
- HandlerBase
- Base class for Views handler plugins.
Namespace
Drupal\views\Plugin\viewsCode
public function getDateField() {
return $this->query
->getDateField("{$this->tableAlias}.{$this->realField}");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.