You are here

public function CalendarSystemsPoorMansGregorianCalendar::__construct in Calendar Systems 8.3

Overrides CalendarSystemsPartialImplementation::__construct

File

src/CalendarSystems/CalendarSystemsPoorMansGregorianCalendar.php, line 14
Fallback calendar implementation in case php-intl is not available.

Class

CalendarSystemsPoorMansGregorianCalendar

Namespace

Drupal\calendar_systems\CalendarSystems

Code

public function __construct($tz, $lang_code) {
  $lang_code = $lang_code !== 'fa' && $lang_code !== 'en' ? 'en' : $lang_code;
  parent::__construct($tz, 'gregorian', $lang_code);
}