You are here

public static function DateTimeCustomFormatter::defaultSettings in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php \Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeCustomFormatter::defaultSettings()
  2. 10 core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php \Drupal\datetime\Plugin\Field\FieldFormatter\DateTimeCustomFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides DateTimeFormatterBase::defaultSettings

1 call to DateTimeCustomFormatter::defaultSettings()
DateRangeCustomFormatter::defaultSettings in core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangeCustomFormatter.php
Defines the default settings for this plugin.
1 method overrides DateTimeCustomFormatter::defaultSettings()
DateRangeCustomFormatter::defaultSettings in core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangeCustomFormatter.php
Defines the default settings for this plugin.

File

core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php, line 26

Class

DateTimeCustomFormatter
Plugin implementation of the 'Custom' formatter for 'datetime' fields.

Namespace

Drupal\datetime\Plugin\Field\FieldFormatter

Code

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