public static function DateTimeDayDefaultFormatter::defaultSettings in Date time day 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides DateTimeDefaultFormatter::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ DateTimeDayDefaultFormatter.php, line 33
Class
- DateTimeDayDefaultFormatter
- Plugin implementation of the 'Default' formatter for 'datetimeday' fields.
Namespace
Drupal\date_time_day\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$default_settings = [
'day_separator' => ',',
'time_separator' => '-',
'time_format_type' => 'html_time',
] + parent::defaultSettings();
// Override format type with our custom value.
$default_settings['format_type'] = 'html_date';
return $default_settings;
}