You are here

public static function PriceDifferenceFormatter::defaultSettings in Price Difference Formatter 8

Defines the default settings for this plugin.

Return value

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

Overrides PriceCalculatedFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/PriceDifferenceFormatter.php, line 97

Class

PriceDifferenceFormatter
Plugin implementation of the 'price_difference_formatter' formatter.

Namespace

Drupal\price_difference_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'display_elements' => [
      'discount_percentage' => 'discount_percentage',
    ],
  ] + parent::defaultSettings();
}