You are here

public function Date::getDateField in Zircon Profile 8.0

Same name in this branch
  1. 8.0 core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateField()
  2. 8.0 core/modules/datetime/src/Plugin/views/argument/Date.php \Drupal\datetime\Plugin\views\Argument\Date::getDateField()
Same name and namespace in other branches
  1. 8 core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateField()

Override to account for dates stored as strings.

Overrides HandlerBase::getDateField

1 call to Date::getDateField()
Date::getDateFormat in core/modules/datetime/src/Plugin/views/sort/Date.php
Overridden in order to pass in the string date flag.

File

core/modules/datetime/src/Plugin/views/sort/Date.php, line 25
Contains \Drupal\datetime\Plugin\views\sort\Date.

Class

Date
Basic sort handler for datetime fields.

Namespace

Drupal\datetime\Plugin\views\sort

Code

public function getDateField() {

  // Return the real field, since it is already in string format.
  return "{$this->tableAlias}.{$this->realField}";
}