You are here

public static function PriceDefaultFormatter::defaultSettings in Price 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/PriceDefaultFormatter.php \Drupal\price\Plugin\Field\FieldFormatter\PriceDefaultFormatter::defaultSettings()
  2. 3.x src/Plugin/Field/FieldFormatter/PriceDefaultFormatter.php \Drupal\price\Plugin\Field\FieldFormatter\PriceDefaultFormatter::defaultSettings()
  3. 2.x src/Plugin/Field/FieldFormatter/PriceDefaultFormatter.php \Drupal\price\Plugin\Field\FieldFormatter\PriceDefaultFormatter::defaultSettings()
  4. 3.0.x src/Plugin/Field/FieldFormatter/PriceDefaultFormatter.php \Drupal\price\Plugin\Field\FieldFormatter\PriceDefaultFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/PriceDefaultFormatter.php, line 79

Class

PriceDefaultFormatter
Plugin implementation of the 'price_default' formatter.

Namespace

Drupal\price\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'strip_trailing_zeroes' => FALSE,
    'currency_display' => 'symbol',
  ] + parent::defaultSettings();
}