public static function CalendarSystemsDateTime::formatExample in Calendar Systems 8.3
Creates an example for a date format.
This is centralized for a consistent method of creating these examples.
Parameters
string $format:
Return value
string
Overrides Datetime::formatExample
1 call to CalendarSystemsDateTime::formatExample()
File
- src/
Element/ CalendarSystemsDateTime.php, line 225
Class
- CalendarSystemsDateTime
- Plugin annotation @FormElement("datetime");
Namespace
Drupal\calendar_systems\ElementCode
public static function formatExample($format) {
return (new CalendarSystemsDrupalDateTime())
->format($format);
}