Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Date.php

function Date::getDateFormat

Same name in this branch
  1. 11.1.x core/modules/datetime/src/Plugin/views/sort/Date.php \Drupal\datetime\Plugin\views\sort\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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal