You are here

public static function TimeFieldFormatter::defaultSettings in Time Formatter 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldFormatter/TimeFieldFormatter.php \Drupal\time_formatter\Plugin\Field\FieldFormatter\TimeFieldFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/TimeFieldFormatter.php, line 73

Class

TimeFieldFormatter
Plugin implementation of the 'time_field_formatter' formatter.

Namespace

Drupal\time_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'storage' => self::STORAGE_MILLISECONDS,
    'display' => self::DISPLAY_NUMBERSMS,
    'hours' => self::HOURS_ALWAYS,
  ] + parent::defaultSettings();
}