function HandlerBase::getDateField

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::getDateField()
  2. 10 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::getDateField()
  3. 8.9.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.

File

core/modules/views/src/Plugin/views/HandlerBase.php, line 650

Class

HandlerBase
Base class for Views handler plugins.

Namespace

Drupal\views\Plugin\views

Code

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.