You are here

public static function FieldTimerSimpleTextFormatter::defaultSettings in Field Timer 8

Same name and namespace in other branches
  1. 2.x 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\FieldFormatter

Code

public static function defaultSettings() {
  $settings = [
    'type' => static::TYPE_AUTO,
  ] + parent::defaultSettings();
  return $settings;
}