public static function FieldTimerSimpleTextFormatter::defaultSettings in Field Timer 2.x
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/FieldTimerSimpleTextFormatter.php \Drupal\field_timer\Plugin\Field\FieldFormatter\FieldTimerSimpleTextFormatter::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides TimestampAgoFormatter::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ FieldTimerSimpleTextFormatter.php, line 70
Class
- FieldTimerSimpleTextFormatter
- Plugin implementation of the 'field_timer_simple_text' formatter.
Namespace
Drupal\field_timer\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$settings = [
'type' => static::TYPE_AUTO,
] + parent::defaultSettings();
return $settings;
}