public static function DatexDateTime::formatExample in Datex 8
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 DatexDateTime::formatExample()
- DatexDateTime::xProcessDatetime in src/
Element/ DatexDateTime.php
File
- src/
Element/ DatexDateTime.php, line 20
Class
- DatexDateTime
- Plugin annotation @FormElement("datetime");
Namespace
Drupal\datex\ElementCode
public static function formatExample($format) {
return (new DatexDrupalDateTime())
->format($format);
}