You are here

public function CalendarSystemsArgHandlerTrait::query in Calendar Systems 8.3

File

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

Class

CalendarSystemsArgHandlerTrait

Namespace

Drupal\calendar_systems\Plugin\views\argument

Code

public function query($group_by = FALSE) {
  $cal = _calendar_systems_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);
}