You are here

public function DatexIntlCalendar::__construct in Datex 8

Overrides DatexPartialImplementation::__construct

File

src/Datex/DatexIntlCalendar.php, line 11

Class

DatexIntlCalendar

Namespace

Drupal\datex\Datex

Code

public function __construct($tz, $calendar, $lang_code) {
  parent::__construct($tz, $calendar, $lang_code);
  $this->locale = $lang_code . '@calendar=' . $calendar;
  $this->intlFormatter = self::intl($this->timezone, $this->locale);
}