You are here

public function DatexArgHandlerTrait::query in Datex 8

File

src/Plugin/views/argument/DatexArgHandlerTrait.php, line 10

Class

DatexArgHandlerTrait

Namespace

Drupal\datex\Plugin\views\argument

Code

public function query($group_by = FALSE) {
  $cal = datex_factory();
  if ($cal && $cal
    ->getCalendarName() !== 'gregorian') {
    if ($cal
      ->parse(self::translate($this->argument), $this->argFormat)) {
      $this->argument = $cal
        ->xFormat($this->argFormat);
    }
  }
  parent::query($group_by);
}