You are here

public function LogStandardSort::getDateField in Log entity 2.x

Creates cross-database SQL dates.

Return value

string An appropriate SQL string for the db type and field type.

Overrides HandlerBase::getDateField

File

src/Plugin/views/sort/LogStandardSort.php, line 55

Class

LogStandardSort
Sort handler for logs based on timestamp and id.

Namespace

Drupal\log\Plugin\views\sort

Code

public function getDateField() {
  return $this->query
    ->getDateField("{$this->tableAlias}.timestamp");
}