public function CalendarSystemsPoorMansJaliliCalendar::format in Calendar Systems 8.3
Overrides CalendarSystemsInterface::format
1 call to CalendarSystemsPoorMansJaliliCalendar::format()
- CalendarSystemsPoorMansJaliliCalendar::parse in src/
CalendarSystems/ CalendarSystemsPoorMansJaliliCalendar.php - Is supposed to parse a date string into date value.
File
- src/
CalendarSystems/ CalendarSystemsPoorMansJaliliCalendar.php, line 285 - Fallback calendar implementation in case php-intl is not avaiable.
Class
- CalendarSystemsPoorMansJaliliCalendar
- Jalali calendar for calendar_systems.
Namespace
Drupal\calendar_systems\CalendarSystemsCode
public function format($format) {
$format = str_replace('M', 'F', $format);
return self::_format($format, parent::getOrigin(), $this
->getLangcode() === 'fa');
}