You are here

public function HandlerBase::getDateField in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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/sort/Date.php
Override to account for dates stored as strings.
Date::getDateField in core/modules/datetime/src/Plugin/views/argument/Date.php
Creates cross-database SQL dates.

File

core/modules/views/src/Plugin/views/HandlerBase.php, line 646
Contains \Drupal\views\Plugin\views\HandlerBase.

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}");
}