You are here

public static function PadoAddToCartFormatter::defaultSettings in Commerce Product Add-on 8

Defines the default settings for this plugin.

Return value

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

Overrides AddToCartFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/PadoAddToCartFormatter.php, line 26

Class

PadoAddToCartFormatter
Plugin implementation of the 'commerce_pado_add_to_cart' formatter.

Namespace

Drupal\commerce_pado\Plugin\Field\FieldFormatter

Code

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