You are here

public static function VariationAddToCartFormatter::defaultSettings in Commerce Variation Add to Cart 8

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/VariationAddToCartFormatter.php, line 77

Class

VariationAddToCartFormatter
Plugin implementation of the 'variation_add_to_cart_form' formatter.

Namespace

Drupal\commerce_variation_add_to_cart\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'show_title' => FALSE,
    'show_quantity' => TRUE,
    'show_price' => TRUE,
    'show_currency' => TRUE,
    'price_format' => '2',
    'attributes' => [],
  ] + parent::defaultSettings();
}