You are here

public static function PriceModifiedDefaultFormatter::defaultSettings in Price 8

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldFormatter/PriceModifiedDefaultFormatter.php \Drupal\price\Plugin\Field\FieldFormatter\PriceModifiedDefaultFormatter::defaultSettings()
  2. 3.0.x src/Plugin/Field/FieldFormatter/PriceModifiedDefaultFormatter.php \Drupal\price\Plugin\Field\FieldFormatter\PriceModifiedDefaultFormatter::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/PriceModifiedDefaultFormatter.php, line 107

Class

PriceModifiedDefaultFormatter
Plugin implementation of the 'price_modified' formatter.

Namespace

Drupal\price\Plugin\Field\FieldFormatter

Code

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