You are here

public static function RangeDecimalSprintfFormatter::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 RangeIntegerSprintfFormatter::defaultSettings

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

File

src/Plugin/Field/FieldFormatter/RangeDecimalSprintfFormatter.php, line 26

Class

RangeDecimalSprintfFormatter
Plugin implementation of the 'range_decimal_sprintf' formatter.

Namespace

Drupal\range\Plugin\Field\FieldFormatter

Code

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