You are here

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()
CalendarSystemsDateTime::xProcessDatetime in src/Element/CalendarSystemsDateTime.php

File

src/Element/CalendarSystemsDateTime.php, line 225

Class

CalendarSystemsDateTime
Plugin annotation @FormElement("datetime");

Namespace

Drupal\calendar_systems\Element

Code

public static function formatExample($format) {
  return (new CalendarSystemsDrupalDateTime())
    ->format($format);
}