public static function AddtoCartWithQuantityFormatter::defaultSettings in Basic cart 8
Same name and namespace in other branches
- 8.6 src/Plugin/Field/FieldFormatter/AddToCartWithQuantityFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddToCartWithQuantityFormatter::defaultSettings()
- 8.2 src/Plugin/Field/FieldFormatter/AddToCartWithQuantityFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartWithQuantityFormatter::defaultSettings()
- 8.3 src/Plugin/Field/FieldFormatter/AddToCartWithQuantityFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartWithQuantityFormatter::defaultSettings()
- 8.4 src/Plugin/Field/FieldFormatter/AddToCartWithQuantityFormatter.php \Drupal\basic_cart\Plugin\Field\FieldFormatter\AddtoCartWithQuantityFormatter::defaultSettings()
- 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\FieldFormatterCode
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();
}