public static function DateTimeFormatterBase::defaultSettings in Drupal 9
Same name and namespace in other branches
- 8 core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php \Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeFormatterBase::defaultSettings()
- 10 core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php \Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeFormatterBase::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
3 calls to DateTimeFormatterBase::defaultSettings()
- DateRangePlainFormatter::defaultSettings in core/
modules/ datetime_range/ src/ Plugin/ Field/ FieldFormatter/ DateRangePlainFormatter.php - Defines the default settings for this plugin.
- DateTimeCustomFormatter::defaultSettings in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeCustomFormatter.php - Defines the default settings for this plugin.
- DateTimeDefaultFormatter::defaultSettings in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeDefaultFormatter.php - Defines the default settings for this plugin.
3 methods override DateTimeFormatterBase::defaultSettings()
- DateRangePlainFormatter::defaultSettings in core/
modules/ datetime_range/ src/ Plugin/ Field/ FieldFormatter/ DateRangePlainFormatter.php - Defines the default settings for this plugin.
- DateTimeCustomFormatter::defaultSettings in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeCustomFormatter.php - Defines the default settings for this plugin.
- DateTimeDefaultFormatter::defaultSettings in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeDefaultFormatter.php - Defines the default settings for this plugin.
File
- core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeFormatterBase.php, line 84
Class
- DateTimeFormatterBase
- Base class for 'DateTime Field formatter' plugin implementations.
Namespace
Drupal\datetime\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'timezone_override' => '',
] + parent::defaultSettings();
}