You are here

public static function FractionDecimalFormatter::defaultSettings in Fraction 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/FractionDecimalFormatter.php \Drupal\fraction\Plugin\Field\FieldFormatter\FractionDecimalFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides FractionFormatterBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/FractionDecimalFormatter.php, line 24

Class

FractionDecimalFormatter
Plugin implementation of the 'fraction_decimal' formatter.

Namespace

Drupal\fraction\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'precision' => 0,
    'auto_precision' => TRUE,
  ] + parent::defaultSettings();
}