You are here

public static function AddtoCartWithQuantityFormatter::defaultSettings in Basic cart 8

Same name and namespace in other branches
  1. 8.6 src/Plugin/Field/FieldFormatter/AddToCartWithQuantityFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddToCartWithQuantityFormatter::defaultSettings()
  2. 8.2 src/Plugin/Field/FieldFormatter/AddToCartWithQuantityFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartWithQuantityFormatter::defaultSettings()
  3. 8.3 src/Plugin/Field/FieldFormatter/AddToCartWithQuantityFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartWithQuantityFormatter::defaultSettings()
  4. 8.4 src/Plugin/Field/FieldFormatter/AddToCartWithQuantityFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartWithQuantityFormatter::defaultSettings()
  5. 8.5 src/Plugin/Field/FieldFormatter/AddToCartWithQuantityFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartWithQuantityFormatter::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/AddToCartWithQuantityFormatter.php, line 29

Class

AddtoCartWithQuantityFormatter
Plugin implementation of the 'addtocartwithquantity' formatter.

Namespace

Drupal\basic_cart\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'quantity_addtocart_wrapper_container_class' => '',
    'quantity_addtocart_button_container_class' => '',
    'quantity_addtocart_button_class' => '',
    'quantity_addtocart_message_wrapper_class' => '',
    'quantity_addtocart_quantity_wrapper_container_class' => '',
    'quantity_addtocart_quantity_textfield_class' => '',
    'quantity_addtocart_quantity_label_class' => '',
    'quantity_addtocart_quantity_label_value' => '',
  ) + parent::defaultSettings();
}