public static function DateRangeFormatterRangeFormatter::defaultSettings in Date range formatter 9.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/Field/FieldFormatter/DateRangeFormatterRangeFormatter.php \Drupal\date_range_formatter\Plugin\Field\FieldFormatter\DateRangeFormatterRangeFormatter::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides DateTimeCustomFormatter::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ DateRangeFormatterRangeFormatter.php, line 31
Class
- DateRangeFormatterRangeFormatter
- Plugin implementation of the 'Custom' formatter for 'daterange' fields.
Namespace
Drupal\date_range_formatter\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'separator' => '-',
'single' => 'd F Y',
'single_all_day' => 'd F Y',
'one_day' => 'd F Y',
'one_month' => 'd - {d} F Y',
'several_months' => 'd F - {d} {F} Y',
'several_years' => 'd F Y - {d} {F} {Y}',
] + parent::defaultSettings();
}