You are here

public static function StoreDateTimeFormatter::defaultSettings in Commerce Core 8.2

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

modules/store/src/Plugin/Field/FieldFormatter/StoreDateTimeFormatter.php, line 98

Class

StoreDateTimeFormatter
Plugin implementation of the 'commerce_store_datetime' formatter.

Namespace

Drupal\commerce_store\Plugin\Field\FieldFormatter

Code

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