You are here

public function DatexPoorMansJaliliCalendar::format in Datex 8

Overrides DatexInterface::format

1 call to DatexPoorMansJaliliCalendar::format()
DatexPoorMansJaliliCalendar::parse in src/Datex/DatexPoorMansJaliliCalendar.php
Is supposed to parse a date string into date value.

File

src/Datex/DatexPoorMansJaliliCalendar.php, line 31
Fallback calendar implementation in case php-intl is not avaiable.

Class

DatexPoorMansJaliliCalendar
Jalali calendar for datex.

Namespace

Drupal\datex\Datex

Code

public function format($format) {
  $format = str_replace('M', 'F', $format);
  return self::_format($format, parent::getOrigin(), $this
    ->getLangcode() === 'fa');
}