You are here

public static function RangeDecimalFormatter::defaultSettings in Range 8

Defines the default settings for this plugin.

Return value

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

Overrides RangeIntegerFormatter::defaultSettings

1 call to RangeDecimalFormatter::defaultSettings()
DecimalFormatterTest::setUp in tests/src/Kernel/Formatter/DecimalFormatterTest.php

File

src/Plugin/Field/FieldFormatter/RangeDecimalFormatter.php, line 28

Class

RangeDecimalFormatter
Plugin implementation of the 'range_decimal' formatter.

Namespace

Drupal\range\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'decimal_separator' => '.',
    'scale' => 2,
  ] + parent::defaultSettings();
}