function DateTimeRangeTrait::dateTimeRangeDefaultSettings
Same name in other branches
- 10 core/modules/datetime_range/src/DateTimeRangeTrait.php \Drupal\datetime_range\DateTimeRangeTrait::dateTimeRangeDefaultSettings()
Get the default settings for a date and time range display.
Return value
array An array containing default settings.
3 calls to DateTimeRangeTrait::dateTimeRangeDefaultSettings()
- DateRangeCustomFormatter::defaultSettings in core/
modules/ datetime_range/ src/ Plugin/ Field/ FieldFormatter/ DateRangeCustomFormatter.php - Defines the default settings for this plugin.
- DateRangeDefaultFormatter::defaultSettings in core/
modules/ datetime_range/ src/ Plugin/ Field/ FieldFormatter/ DateRangeDefaultFormatter.php - Defines the default settings for this plugin.
- DateRangePlainFormatter::defaultSettings in core/
modules/ datetime_range/ src/ Plugin/ Field/ FieldFormatter/ DateRangePlainFormatter.php - Defines the default settings for this plugin.
File
-
core/
modules/ datetime_range/ src/ DateTimeRangeTrait.php, line 19
Class
- DateTimeRangeTrait
- Provides friendly methods for datetime range.
Namespace
Drupal\datetime_rangeCode
protected static function dateTimeRangeDefaultSettings() : array {
return [
'from_to' => DateTimeRangeConstantsInterface::BOTH,
'separator' => '-',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.