You are here

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

2 calls to RangeIntegerSprintfFormatter::defaultSettings()
IntegerSprintfFormatterTest::setUp in tests/src/Kernel/Formatter/IntegerSprintfFormatterTest.php
RangeDecimalSprintfFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/RangeDecimalSprintfFormatter.php
Defines the default settings for this plugin.
1 method overrides RangeIntegerSprintfFormatter::defaultSettings()
RangeDecimalSprintfFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/RangeDecimalSprintfFormatter.php
Defines the default settings for this plugin.

File

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

Class

RangeIntegerSprintfFormatter
Plugin implementation of the 'range_integer_sprintf' formatter.

Namespace

Drupal\range\Plugin\Field\FieldFormatter

Code

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