function Date::getDateFormat

Same name in this branch
  1. 11.x core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateFormat()
Same name in other branches
  1. 9 core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateFormat()
  2. 9 core/modules/datetime/src/Plugin/views/argument/Date.php \Drupal\datetime\Plugin\views\argument\Date::getDateFormat()
  3. 8.9.x core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateFormat()
  4. 8.9.x core/modules/datetime/src/Plugin/views/argument/Date.php \Drupal\datetime\Plugin\views\argument\Date::getDateFormat()
  5. 10 core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\Date::getDateFormat()
  6. 10 core/modules/datetime/src/Plugin/views/argument/Date.php \Drupal\datetime\Plugin\views\argument\Date::getDateFormat()

Overrides HandlerBase::getDateFormat

File

core/modules/datetime/src/Plugin/views/argument/Date.php, line 74

Class

Date
Abstract argument handler for dates.

Namespace

Drupal\datetime\Plugin\views\argument

Code

public function getDateFormat($format) {
    // Pass in the string-field option.
    return $this->query
        ->getDateFormat($this->getDateField(), $format, TRUE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.