function DateTimeFormatterBase::defaultSettings

Same name in other branches
  1. 9 core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php \Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeFormatterBase::defaultSettings()
  2. 8.9.x core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php \Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeFormatterBase::defaultSettings()
  3. 11.x core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php \Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeFormatterBase::defaultSettings()

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 85

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.