You are here

public static function TimeFormatter::defaultSettings in Time Field For Drupal 8.x / 9.x 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldFormatter/TimeFormatter.php \Drupal\time_field\Plugin\Field\FieldFormatter\TimeFormatter::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/TimeFormatter.php, line 70

Class

TimeFormatter
Plugin implementation of the 'time_formatter' formatter.

Namespace

Drupal\time_field\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'time_format' => 'h:i a',
  ] + parent::defaultSettings();
}