You are here

public static function DateTimeFormatterBase::defaultSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php \Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeFormatterBase::defaultSettings()
  2. 9 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 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\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'timezone_override' => '',
  ] + parent::defaultSettings();
}