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

Breadcrumb

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

function 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 731

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

API Navigation

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